|
|
@ -38,7 +38,7 @@ class ProjectAdmin(admin.ModelAdmin): |
|
|
|
@admin.register(BusinessCard) |
|
|
|
class BusinessCardAdmin(admin.ModelAdmin): |
|
|
|
save_as = True |
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date', 'project') |
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date', 'project') |
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date', 'project') |
|
|
|
list_display_links = ('realname', 'service_id') |
|
|
|
# action = ['export_as_csv'] |
|
|
@ -49,7 +49,7 @@ class BusinessCardAdmin(admin.ModelAdmin): |
|
|
|
@admin.register(Literature) |
|
|
|
class LiteratureAdmin(admin.ModelAdmin): |
|
|
|
save_as = True |
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date') |
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display_links = ('realname', 'service_id') |
|
|
|
date_hierarchy = 'granted_date' |
|
|
@ -73,7 +73,7 @@ class HonoraryCertificateAdmin(admin.ModelAdmin): |
|
|
|
@admin.register(Library) |
|
|
|
class LibraryAdmin(admin.ModelAdmin): |
|
|
|
save_as = True |
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date') |
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display_links = ('realname', 'service_id') |
|
|
|
date_hierarchy = 'granted_date' |
|
|
@ -81,7 +81,7 @@ class LibraryAdmin(admin.ModelAdmin): |
|
|
|
@admin.register(IFG) |
|
|
|
class IFGAdmin(admin.ModelAdmin): |
|
|
|
save_as = True |
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date') |
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display_links = ('realname', 'service_id') |
|
|
|
date_hierarchy = 'granted_date' |
|
|
@ -97,7 +97,7 @@ class TravelAdmin(admin.ModelAdmin): |
|
|
|
@admin.register(Email) |
|
|
|
class EmailAdmin(admin.ModelAdmin): |
|
|
|
save_as = True |
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date') |
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display_links = ('realname', 'service_id') |
|
|
|
date_hierarchy = 'granted_date' |
|
|
@ -106,7 +106,7 @@ class EmailAdmin(admin.ModelAdmin): |
|
|
|
@admin.register(List) |
|
|
|
class ListAdmin(admin.ModelAdmin): |
|
|
|
save_as = True |
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date') |
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date') |
|
|
|
list_display_links = ('realname', 'service_id') |
|
|
|
date_hierarchy = 'granted_date' |
|
|
|