make portfolio a combo box on user edit model

This commit is contained in:
Rachid Mrad 2024-07-23 12:07:53 -04:00
parent c17e4e4eaa
commit 661d2d7a22
No known key found for this signature in database
2 changed files with 109 additions and 0 deletions

View file

@ -695,6 +695,10 @@ class MyUserAdmin(BaseUserAdmin, ImportExportModelAdmin):
("Important dates", {"fields": ("last_login", "date_joined")}),
)
autocomplete_fields = [
"portfolio",
]
readonly_fields = ("verification_type",)
# Hide Username (uuid), Groups and Permissions