|
@ -19,7 +19,7 @@ class CisloForm(ModelForm): |
|
|
class Meta: |
|
|
class Meta: |
|
|
model = m.Cislo |
|
|
model = m.Cislo |
|
|
fields = '__all__' |
|
|
fields = '__all__' |
|
|
|
|
|
|
|
|
def clean(self): |
|
|
def clean(self): |
|
|
if self.cleaned_data.get('verejne_db') == False: |
|
|
if self.cleaned_data.get('verejne_db') == False: |
|
|
return self.cleaned_data |
|
|
return self.cleaned_data |
|
@ -154,7 +154,7 @@ class ResitelInline(admin.TabularInline): |
|
|
extra = 1 |
|
|
extra = 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(m.Pohadka) |
|
|
# admin.site.register(m.Pohadka) |
|
|
admin.site.register(m.Obrazek) |
|
|
admin.site.register(m.Obrazek) |
|
|
admin.site.register(m.Nastaveni, SingletonModelAdmin) |
|
|
admin.site.register(m.Nastaveni, SingletonModelAdmin) |
|
|
admin.site.register(m.Novinky) |
|
|
admin.site.register(m.Novinky) |
|
|