Browse Source

Fix inline osoba do orga v adminu

export_seznamu_prednasek
Jonas Havelka 3 years ago
parent
commit
643938ac69
  1. 2
      seminar/admin.py

2
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']

Loading…
Cancel
Save