diff --git a/nsupdate/accounts/views.py b/nsupdate/accounts/views.py index d3172ef..0bd328e 100644 --- a/nsupdate/accounts/views.py +++ b/nsupdate/accounts/views.py @@ -12,7 +12,7 @@ class UserProfileView(UpdateView): fields = ['first_name', 'last_name'] form_class = UserProfileForm - def get_object(self): + def get_object(self, queryset=None): return self.request.user def get_success_url(self):