From 643938ac692a85a72f535906baeab40163132c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 15 Nov 2021 20:40:04 +0100 Subject: [PATCH] Fix inline osoba do orga v adminu --- seminar/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/admin.py b/seminar/admin.py index 514dfa47..9cecb1b6 100644 --- a/seminar/admin.py +++ b/seminar/admin.py @@ -135,7 +135,7 @@ class OsobaInline(admin.TabularInline): model = m.Osoba @admin.register(m.Organizator) -class OrganizatorAdmin(admin.ModelAdmin): +class OrganizatorAdmin(ReverseModelAdmin): search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka'] inline_type = 'stacked' inline_reverse = ['osoba']