aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-01-20 15:18:22 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-01-20 15:18:22 +0000
commit9ebc666f819897aac04e9bc529a39fb40ee7abfb (patch)
treeb9ef935a7f9be6bc96a0ce206badf1f5ffa4469c /ctrack/users/views.py
parent52a0a7570f55a4d60e67f384a97148df153ae5f7 (diff)
Playing around with User model
Diffstat (limited to 'ctrack/users/views.py')
-rw-r--r--ctrack/users/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/users/views.py b/ctrack/users/views.py
index 5c0d5b5..9cf69e9 100644
--- a/ctrack/users/views.py
+++ b/ctrack/users/views.py
@@ -21,7 +21,7 @@ user_detail_view = UserDetailView.as_view()
class UserUpdateView(LoginRequiredMixin, UpdateView):
model = User
- fields = ["name"]
+ fields = ["name", "first_name", "last_name"]
def get_success_url(self):
return reverse("users:detail", kwargs={"username": self.request.user.username})