Browse Source

Zakomentovani pohadky

okenkove_obalky
Kristyna Petrlikova 3 years ago
parent
commit
9bc7588980
  1. 4
      seminar/admin.py

4
seminar/admin.py

@ -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)

Loading…
Cancel
Save