Skip to content

Commit 1023317

Browse files
authored
⚡️(users-admin) let update some fields in admin view (#653)
1 parent 483c7b7 commit 1023317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/web/infrastructure/django_apps/users

src/web/infrastructure/django_apps/users/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class UserModelAdmin(admin.ModelAdmin):
1515
)
1616
list_filter = ("is_staff", "is_superuser")
1717
search_fields = ("email",)
18-
readonly_fields = [f.name for f in UserModel._meta.get_fields()]
18+
readonly_fields = ["username", "id", "date_joined", "last_login", "password"]

0 commit comments

Comments
 (0)