|
@ -32,13 +32,18 @@ class ProjectAdmin(admin.ModelAdmin): |
|
|
search_fields = ('name', 'pid','finance_id', 'realname', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') |
|
|
search_fields = ('name', 'pid','finance_id', 'realname', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') |
|
|
list_display = ('name', 'pid','finance_id', 'realname', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') |
|
|
list_display = ('name', 'pid','finance_id', 'realname', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') |
|
|
# action = ['export_as_csv'] |
|
|
# action = ['export_as_csv'] |
|
|
|
|
|
date_hierarchy = 'start' |
|
|
|
|
|
|
|
|
@admin.register(BusinessCard) |
|
|
@admin.register(BusinessCard) |
|
|
class BusinessCardAdmin(admin.ModelAdmin): |
|
|
class BusinessCardAdmin(admin.ModelAdmin): |
|
|
save_as = True |
|
|
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date', 'project') |
|
|
|
|
|
|
|
|
save_as = True |
|
|
|
|
|
search_fields = (('realname', 'service_id'), 'granted', 'granted_date', 'project') |
|
|
list_display = ('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'] |
|
|
# action = ['export_as_csv'] |
|
|
|
|
|
classes = ['collapse'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register([ |
|
|
admin.site.register([ |
|
|
Account, |
|
|
Account, |
|
|