diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-20 15:18:22 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-20 15:18:22 +0000 |
commit | 9ebc666f819897aac04e9bc529a39fb40ee7abfb (patch) | |
tree | b9ef935a7f9be6bc96a0ce206badf1f5ffa4469c /ctrack/users/views.py | |
parent | 52a0a7570f55a4d60e67f384a97148df153ae5f7 (diff) |
Playing around with User model
Diffstat (limited to 'ctrack/users/views.py')
-rw-r--r-- | ctrack/users/views.py | 2 |
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}) |