Na výběr orgů pro PDF chceme autocomplete

This commit is contained in:
Pavel "LEdoian" Turinsky 2024-06-12 02:25:01 +02:00
parent d895cd0636
commit 8a5659420d

View file

@ -42,7 +42,7 @@ class KorekturovanePDFAdmin(VersionAdmin):
list_display = ['nazev', 'cas', 'stran'] list_display = ['nazev', 'cas', 'stran']
list_filter = [] list_filter = []
search_fields = [] search_fields = []
filter_horizontal = ['orgove'] autocomplete_fields = ['orgove']
def save_model(self, request, obj, form, change): def save_model(self, request, obj, form, change):
""" """