user.first_name = self.cleaned_data.get('first_name', '')
user.last_name = self.cleaned_data.get('last_name', '')
user.save()
user.first_name = self.cleaned_data.get('first_name', '')
user.last_name = self.cleaned_data.get('last_name', '')
user.save()
class DelegateField(forms.ModelChoiceField):
def __init__(self, project, *args, **kwargs):
class DelegateField(forms.ModelChoiceField):
def __init__(self, project, *args, **kwargs):
class PatchForm(forms.ModelForm):
def __init__(self, instance = None, project = None, *args, **kwargs):
class PatchForm(forms.ModelForm):
def __init__(self, instance = None, project = None, *args, **kwargs):
super(PatchForm, self).__init__(instance = instance, *args, **kwargs)
super(PatchForm, self).__init__(instance = instance, *args, **kwargs)
def __init__(self, project, *args, **kwargs):
super(MultiplePatchForm, self).__init__(project = project,
*args, **kwargs)
def __init__(self, project, *args, **kwargs):
super(MultiplePatchForm, self).__init__(project = project,
*args, **kwargs)
def save(self, instance, commit = True):
opts = instance.__class__._meta
def save(self, instance, commit = True):
opts = instance.__class__._meta