Person: Show id
This commit is contained in:
parent
1a8dd58e3f
commit
edf89706e7
1 changed files with 2 additions and 1 deletions
|
@ -4,11 +4,12 @@ from .models import *
|
|||
|
||||
|
||||
class PersonAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ['id']
|
||||
search_fields = ['title', 'first_name', 'last_name', 'organisation', 'position', 'country__short_name', 'contact_email']
|
||||
fieldsets = (
|
||||
(None, {
|
||||
'fields': (
|
||||
('mr_mrs', 'title','full_name', 'position'),
|
||||
('id', 'mr_mrs', 'title','full_name', 'position'),
|
||||
('first_name', 'last_name', 'search_name', 'status'),
|
||||
('contact_email', 'email_2', 'skype', 'professional_phone'),
|
||||
'organization',
|
||||
|
|
Loading…
Reference in a new issue