@ -90,12 +90,13 @@ class IFGAdmin(admin.ModelAdmin):
@admin.register ( Travel )
@admin.register ( Travel )
class TravelAdmin ( admin . ModelAdmin ) :
class TravelAdmin ( admin . ModelAdmin ) :
save_as = True
save_as = True
search_fields = [ ' realname ' , ' granted_date ' ]
list_display = ( ' realname ' , ' granted ' , ' granted_date ' , ' project_end ' , ' project ' , ' project_end_quartal ' )
search_fields = [ ' realname ' , ' service_id ' , ' granted_date' ]
list_display = ( ' realname ' , ' service_id ' , ' granted' , ' granted_date ' , ' project_end ' , ' project ' , ' project_end_quartal ' )
list_display_links = ( ' realname ' , ' project ' )
list_display_links = ( ' realname ' , ' project ' )
date_hierarchy = ' project_end '
date_hierarchy = ' project_end '
readonly_fields = ( ' project_end_quartal ' , ' project_end ' )
readonly_fields = ( ' project_end_quartal ' , ' project_end ' )
autocomplete_fields = [ ' project ' ]
autocomplete_fields = [ ' project ' ]
readonly_fields = [ ' service_id ' ]
@admin.register ( Email )
@admin.register ( Email )
class EmailAdmin ( admin . ModelAdmin ) :
class EmailAdmin ( admin . ModelAdmin ) :