code: def clean(self):
          
          super().clean()
          if self.group:
              self.groupname = self.group.name
          elif not self.groupname:
              raise ValidationError({
                  'groupname': _NOT_BLANK_MESSAGE,
                  'group': _NOT_BLANK_MESSAGE
              })
docs: automatically sets groupname