Display in admin and export 'ext_id' field
This commit is contained in:
parent
baa3af6f86
commit
b25fda850c
2 changed files with 3 additions and 1 deletions
|
|
@ -20,7 +20,8 @@ class StudentAdmin(admin.ModelAdmin):
|
|||
list_filter = ('klass', 'archived')
|
||||
search_fields = ('last_name', 'first_name', 'pcode', 'city', 'klass__name')
|
||||
fields = (('last_name', 'first_name'), 'street', ('pcode', 'city'), 'email',
|
||||
('tel', 'mobile'), 'birth_date', 'klass', 'archived')
|
||||
('tel', 'mobile'), ('birth_date', 'ext_id'), 'klass', 'archived')
|
||||
readonly_fields = ('ext_id',)
|
||||
actions = ['archive']
|
||||
|
||||
def archive(self, request, queryset):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue