Archived
Improving User-view in admin interface.
This commit is contained in:
1 parent
2c22c992dd
commit
0d13ec21f2
1 file changed
+1
-9
+1
-9
@@ -3,15 +3,7 @@ from django.contrib.auth.models import User
|
||||
from dusken.models import Member, Institution
|
||||
|
||||
class MemberAdmin(admin.ModelAdmin):
|
||||
fieldsets = [
|
||||
('Other User instances',
|
||||
{'fields' : ['legacy_id']}),
|
||||
('User data',
|
||||
{'fields' : ['username', 'email', 'first_name', 'last_name']}),
|
||||
('User data',
|
||||
{'fields' : ['phone_number', 'date_of_birth', 'address', 'place_of_study']}),
|
||||
]
|
||||
|
||||
exclude = ( 'password', 'last_login', )
|
||||
readonly_fields = ( 'username', )
|
||||
|
||||
class InstitutionAdmin(admin.ModelAdmin):
|
||||
|
||||
Reference in new issue
Block a user