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