Browse Source

fix: řazení řešitelů v adminu podle příjmení

pull/19/head
Jonas Havelka 2 years ago
parent
commit
e10a8e0b6d
  1. 2
      personalni/admin.py

2
personalni/admin.py

@ -43,7 +43,7 @@ class OrganizatorAdmin(ReverseModelAdmin):
@admin.register(m.Resitel) @admin.register(m.Resitel)
class ResitelAdmin(ReverseModelAdmin): class ResitelAdmin(ReverseModelAdmin):
search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka'] search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka']
ordering = ('osoba__jmeno','osoba__prijmeni') ordering = ('osoba__prijmeni', 'osoba__jmeno')
inline_type = 'stacked' inline_type = 'stacked'
inline_reverse = ['osoba'] inline_reverse = ['osoba']

Loading…
Cancel
Save