diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-06 17:43:33 -0500 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-06 17:43:33 -0500 |
| commit | 62f8c5e35949e41ecf777c36736bae1caa007179 (patch) | |
| tree | 7c5ae9efb327d1eda46bf4da05ed239c2041cbc4 /app/dispatch | |
| parent | f5c84efd37085695732803b28d4a74cc05042e0e (diff) | |
| download | dispatch-tracker-62f8c5e35949e41ecf777c36736bae1caa007179.tar.gz dispatch-tracker-62f8c5e35949e41ecf777c36736bae1caa007179.tar.xz | |
Update the driver Detail page. Still need to fix the Identity Create function
Diffstat (limited to 'app/dispatch')
| -rw-r--r-- | app/dispatch/templates/dispatch/drivers/detail.html | 6 | ||||
| -rw-r--r-- | app/dispatch/views.py | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index 774ee48..99d9611 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -6,7 +6,7 @@ <div class="row"> <div class="col s12"> <h1> - User: {{object.first_name}} {{object.last_name}} ( {{object.username}} ) + User: {{object.first_name}} {{object.last_name}} ( {{object.email}} ) </h1> </div> </div> @@ -34,10 +34,6 @@ <td>{{object.last_name}}</td> </tr> <tr> - <th>Username:</th> - <td>{{object.username}}</td> - </tr> - <tr> <th>Email:</th> <td>{{object.email}}</td> </tr> diff --git a/app/dispatch/views.py b/app/dispatch/views.py index 5a94775..f52c372 100644 --- a/app/dispatch/views.py +++ b/app/dispatch/views.py @@ -156,8 +156,8 @@ class DriverUpdate(UserPassesTestMixin, UpdateView): # fields = ['username', 'first_name','last_name','email','groups'] fields = [] - default_fields = ['username', 'first_name', 'last_name', 'email'] - superuser_fields = ['username', 'first_name', 'last_name', 'email', + default_fields = ['first_name', 'last_name', 'email'] + superuser_fields = ['first_name', 'last_name', 'email', 'is_active', 'is_superuser'] def set_fields(self, user): |
