fix: řazení řešitelů v adminu podle příjmení
This commit is contained in:
parent
3110eb92a5
commit
e10a8e0b6d
1 changed files with 1 additions and 1 deletions
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in a new issue