Hi all
Can we combine multiple models together to create a Form by
form_for_instance method?
Now my view is
def edit_user(request):
user = request.user
profile = user.get_profile()
email_notification = EmailNotification.objects.get(user=user)
UserForm = forms.form_for_instance(user)
ProfileForm = forms.form_for_instance(profile)
EmailForm = forms.form_for_instance(email_notification)
Is there any alternate way to solve this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---