From 62f8c5e35949e41ecf777c36736bae1caa007179 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 6 Nov 2017 17:43:33 -0500 Subject: Update the driver Detail page. Still need to fix the Identity Create function --- app/dispatch/templates/dispatch/drivers/detail.html | 6 +----- app/dispatch/views.py | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'app/dispatch') 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 @@

- User: {{object.first_name}} {{object.last_name}} ( {{object.username}} ) + User: {{object.first_name}} {{object.last_name}} ( {{object.email}} )

@@ -33,10 +33,6 @@ Last Name: {{object.last_name}} - - Username: - {{object.username}} - Email: {{object.email}} 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): -- cgit v1.2.3