From b5c4fa1f8f2f1376621bb9afb5aca00a60add719 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Mon, 9 Dec 2019 23:23:34 +0100 Subject: [PATCH] =?UTF-8?q?Galerie:=20V=C3=BDchoz=C3=AD=20po=C5=99ad=C3=AD?= =?UTF-8?q?=20galerie=20je=20nula?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jinak se nedá zobrazit poslední obrázek galerie --- galerie/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galerie/models.py b/galerie/models.py index 3cc4b682..1b64194c 100644 --- a/galerie/models.py +++ b/galerie/models.py @@ -91,7 +91,7 @@ class Galerie(models.Model): zobrazit = models.IntegerField('Zobrazit?', default = ORG, choices = VIDITELNOST) galerie_up = models.ForeignKey('Galerie', blank = True, null = True) soustredeni = models.ForeignKey(Soustredeni, blank = True, null = True) - poradi = models.IntegerField('Pořadí', blank = True, null = True) + poradi = models.IntegerField('Pořadí', blank = True, null = False, default = 0) def __unicode__(self): return self.nazev