forked from beba/foerderbarometer
added search bar to foreign key choice field project in model travel
This commit is contained in:
parent
f35a788fd0
commit
e814b7fa41
|
@ -91,6 +91,7 @@ class TravelAdmin(admin.ModelAdmin):
|
||||||
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']
|
||||||
|
|
||||||
@admin.register(Email)
|
@admin.register(Email)
|
||||||
class EmailAdmin(admin.ModelAdmin):
|
class EmailAdmin(admin.ModelAdmin):
|
||||||
|
|
Loading…
Reference in New Issue