mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
use shortened names for orgs in the choicefield which satisfies the admin requirement, replace short name with a long name in the user facing app in the form, summary page, manage app page
This commit is contained in:
parent
1550fde832
commit
003db40e58
10 changed files with 171 additions and 20 deletions
|
@ -219,9 +219,9 @@ class MyUserAdmin(BaseUserAdmin):
|
|||
# (which should in theory be the ONLY group)
|
||||
def group(self, obj):
|
||||
if obj.groups.filter(name="full_access_group").exists():
|
||||
return "Full access"
|
||||
return "full_access_group"
|
||||
elif obj.groups.filter(name="cisa_analysts_group").exists():
|
||||
return "Analyst"
|
||||
return "cisa_analysts_group"
|
||||
return ""
|
||||
|
||||
def get_list_display(self, request):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue