diff --git a/idhub/templates/idhub/admin/user.html b/idhub/templates/idhub/admin/user.html index fbb04d1..65be22d 100644 --- a/idhub/templates/idhub/admin/user.html +++ b/idhub/templates/idhub/admin/user.html @@ -43,6 +43,15 @@ {{ object.email }} + {% if object.is_admin %} +
+
+ {% trans "Is Admin" %} +
+
+
+
+ {% endif %} diff --git a/idhub_auth/forms.py b/idhub_auth/forms.py index d9ff2f7..a608cd1 100644 --- a/idhub_auth/forms.py +++ b/idhub_auth/forms.py @@ -11,7 +11,7 @@ class ProfileForm(forms.ModelForm): class Meta: model = User - fields = ['first_name', 'last_name', 'email'] + fields = ['first_name', 'last_name', 'email', 'is_admin'] def clean_first_name(self): first_name = super().clean()['first_name']