|
|
@ -137,10 +137,15 @@ class OsobaAdmin(admin.ModelAdmin): |
|
|
|
class OrganizatorAdmin(admin.ModelAdmin): |
|
|
|
search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka'] |
|
|
|
|
|
|
|
class OsobaInline(admin.TabularInline): |
|
|
|
model = m.Osoba |
|
|
|
|
|
|
|
@admin.register(m.Resitel) |
|
|
|
class ResitelAdmin(admin.ModelAdmin): |
|
|
|
class ResitelAdmin(ReverseModelAdmin): |
|
|
|
search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka'] |
|
|
|
ordering = ('osoba__jmeno','osoba__prijmeni') |
|
|
|
inline_type = 'stacked' |
|
|
|
inline_reverse = ['osoba'] |
|
|
|
|
|
|
|
@admin.register(m.Problem) |
|
|
|
class ProblemAdmin(PolymorphicParentModelAdmin): |
|
|
|