def save(self):
    data = self.cleaned_data
user = User(email=data['email'], first_name=data['first_name'], last_name=
    data['last_name'], password1=data['password1'], password2=data['password2']
    )
user.save()
userProfile = UserProfile(user=user, gender=data['genger'], year=data[
    'year'], location=data['location'])
userProfile.save()
Как вы пишете метод сохранения для форм в django?