tweak tests

This commit is contained in:
Rachid Mrad 2023-09-29 15:43:49 -04:00
parent 2840ebc63d
commit 3eb6c56f3e
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
2 changed files with 9 additions and 6 deletions

View file

@ -135,10 +135,13 @@ class MyUserAdmin(BaseUserAdmin):
"email",
"first_name",
"last_name",
"is_staff",
"is_superuser",
"first_group",
"status",
)
# First group (which should by theory be the only group)
def first_group(self, obj):
return f"{obj.groups.first()}"
fieldsets = (
(
@ -175,8 +178,7 @@ class MyUserAdmin(BaseUserAdmin):
{
"fields": (
"is_active",
"is_staff",
"is_superuser",
"groups",
)
},
),
@ -195,6 +197,7 @@ class MyUserAdmin(BaseUserAdmin):
"is_active",
"is_staff",
"is_superuser",
"groups",
"Important dates",
"last_login",
"date_joined",