From e10a8e0b6d13386ec860373e5950836c5e16c944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 2 Jan 2023 20:46:05 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=C5=99azen=C3=AD=20=C5=99e=C5=A1itel?= =?UTF-8?q?=C5=AF=20v=20adminu=20podle=20p=C5=99=C3=ADjmen=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- personalni/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personalni/admin.py b/personalni/admin.py index 8befe589..fc3cadd4 100644 --- a/personalni/admin.py +++ b/personalni/admin.py @@ -43,7 +43,7 @@ class OrganizatorAdmin(ReverseModelAdmin): @admin.register(m.Resitel) class ResitelAdmin(ReverseModelAdmin): search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka'] - ordering = ('osoba__jmeno','osoba__prijmeni') + ordering = ('osoba__prijmeni', 'osoba__jmeno') inline_type = 'stacked' inline_reverse = ['osoba']