travel und project models now have date hierarchy based on project end
This commit is contained in:
parent
b451cbbb16
commit
402a6f047c
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ class IFGAdmin(admin.ModelAdmin):
|
||||||
class TravelAdmin(admin.ModelAdmin):
|
class TravelAdmin(admin.ModelAdmin):
|
||||||
save_as = True
|
save_as = True
|
||||||
search_fields = ['realname', 'granted_date']
|
search_fields = ['realname', 'granted_date']
|
||||||
list_display = ('realname', 'granted', 'granted_date', 'project')
|
list_display = ('realname', 'granted', 'granted_date', 'project_end', 'project')
|
||||||
list_display_links = ('realname', 'project')
|
list_display_links = ('realname', 'project')
|
||||||
date_hierarchy = 'granted_date'
|
date_hierarchy = 'project_end'
|
||||||
|
|
||||||
@admin.register(Email)
|
@admin.register(Email)
|
||||||
class EmailAdmin(admin.ModelAdmin):
|
class EmailAdmin(admin.ModelAdmin):
|
||||||
|
|
Loading…
Reference in a new issue