Browse Source

honorary certificate model now has autocomplete field foreign key project too

master
alpcentaur 1 year ago
parent
commit
e32cc87f63
2 changed files with 1 additions and 0 deletions
  1. BIN
      input/.models.py.swp
  2. +1
    -0
      input/admin.py

BIN
input/.models.py.swp View File


+ 1
- 0
input/admin.py View File

@ -69,6 +69,7 @@ class HonoraryCertificateAdmin(admin.ModelAdmin):
search_fields = ['realname', 'granted'] search_fields = ['realname', 'granted']
list_display = ('realname', 'granted','project') list_display = ('realname', 'granted','project')
date_hierarchy = 'granted_date' date_hierarchy = 'granted_date'
autocomplete_fields = ['project']
@admin.register(Library) @admin.register(Library)
class LibraryAdmin(admin.ModelAdmin): class LibraryAdmin(admin.ModelAdmin):

Loading…
Cancel
Save