I\'m trying to display a simple ModelForm for a user\'s profile and allow the user to update it. The problem here is that my logic is somehow flawed, and after a successful
You could also use a generic view:
from django.views.generic.create_update import update_object @login_required def user_profile(request): return update_object(request, form_class=UserProfileForm, object_id=request.user.get_profile().id, template_name='profile/index.html')