From 0ec52cc1e1e5ac2002707ccddd9c32bc4c7e438b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 3 Oct 2013 17:55:48 +0200 Subject: [PATCH] make method signature match base class method's --- nsupdate/accounts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):