|
@ -29,11 +29,16 @@ admin.site.add_action(export_as_csv) |
|
|
@admin.register(Project) |
|
|
@admin.register(Project) |
|
|
class ProjectAdmin(admin.ModelAdmin): |
|
|
class ProjectAdmin(admin.ModelAdmin): |
|
|
save_as = True |
|
|
save_as = True |
|
|
search_fields = ('name', 'pid','finance_id', 'start', 'end', 'participants_estimated', 'participants_real', 'cost', 'status') |
|
|
|
|
|
list_display = ('name', 'pid','finance_id', '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') |
|
|
# action = ['export_as_csv'] |
|
|
# action = ['export_as_csv'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@admin.register(BusinessCard) |
|
|
|
|
|
class BusinessCardAdmin(admin.ModelAdmin): |
|
|
|
|
|
save_as = True |
|
|
|
|
|
search_fields = ('realname', 'service_id', 'granted', 'granted_date', 'project') |
|
|
|
|
|
list_display = ('realname', 'service_id', 'granted', 'granted_date', 'project') |
|
|
|
|
|
# action = ['export_as_csv'] |
|
|
|
|
|
|
|
|
admin.site.register([ |
|
|
admin.site.register([ |
|
|
Account, |
|
|
Account, |
|
@ -42,7 +47,6 @@ admin.site.register([ |
|
|
IFG, |
|
|
IFG, |
|
|
Travel, |
|
|
Travel, |
|
|
Email, |
|
|
Email, |
|
|
BusinessCard, |
|
|
|
|
|
List, |
|
|
List, |
|
|
Literature, |
|
|
Literature, |
|
|
]) |
|
|
]) |