def assign_to(self, user, group):
    self.instance.assigned_user = user
    self.instance.assigned_group = group
    self.instance.save()
def assign_to(self, user, group):
    self.instance.assigned_user = user
    self.instance.assigned_group = group
    self.instance.save()