def save(self, *args, **kwargs):
self.instance.user.first_name = self.cleaned_data.get('first_name', '')
self.instance.user.last_name = self.cleaned_data.get('last_name', '')
self.instance.user.save()
return super(UserCardForm, self).save(*args, **kwargs)
def save(self, *args, **kwargs):
self.instance.user.first_name = self.cleaned_data.get('first_name', '')
self.instance.user.last_name = self.cleaned_data.get('last_name', '')
self.instance.user.save()
return super(UserCardForm, self).save(*args, **kwargs)