|
|
@ -131,12 +131,14 @@ class OsobaAdmin(admin.ModelAdmin): |
|
|
|
org.save() |
|
|
|
udelej_orgem.short_description = "Udělej vybraných osob organizátory" |
|
|
|
|
|
|
|
class OsobaInline(admin.TabularInline): |
|
|
|
model = m.Osoba |
|
|
|
|
|
|
|
@admin.register(m.Organizator) |
|
|
|
class OrganizatorAdmin(admin.ModelAdmin): |
|
|
|
search_fields = ['osoba__jmeno', 'osoba__prijmeni', 'osoba__prezdivka'] |
|
|
|
|
|
|
|
class OsobaInline(admin.TabularInline): |
|
|
|
model = m.Osoba |
|
|
|
inline_type = 'stacked' |
|
|
|
inline_reverse = ['osoba'] |
|
|
|
|
|
|
|
@admin.register(m.Resitel) |
|
|
|
class ResitelAdmin(ReverseModelAdmin): |
|
|
|