self.fields.update(fields_for_model(User, _fields))


class Meta:
    model = UserDetails
exclude = 'user',

def save(self, *args, **kwargs):
    u = self.instance.user
u.first_name = self.cleaned_data['first_name']
u.last_name = self.cleaned_data['last_name']
u.email = self.cleaned_data['email']
u.save()
profile = super(UserDetailsForm, self).save(*args, **kwargs)
return profile
Создание одной формы Django для сохранения двух моделей