new_contents: from django import forms
  from corehq.apps.groups.models import Group
  
  
  class GroupField(forms.ChoiceField):
  
      def __init__(self, domain, *args, **kwargs):
          self.domain = domain
          groups = Group.by_domain(self.domain)
          super(GroupField, self).__init__(
              choices=[(group._id, group.display_name) for group in groups],
              *args, **kwargs
          )
  
subject: add GroupField utility