Display in admin and export 'ext_id' field

This commit is contained in:
Claude Paroz 2015-05-22 11:48:51 +02:00
parent baa3af6f86
commit b25fda850c
2 changed files with 3 additions and 1 deletions

View file

@ -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):