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