make method signature match base class method's

This commit is contained in:
Thomas Waldmann 2013-10-03 17:55:48 +02:00
parent c9e21202cc
commit 0ec52cc1e1

View File

@ -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):