Galerie: Výchozí pořadí galerie je nula
Jinak se nedá zobrazit poslední obrázek galerie
This commit is contained in:
parent
7e070f5f05
commit
b5c4fa1f8f
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class Galerie(models.Model):
|
||||||
zobrazit = models.IntegerField('Zobrazit?', default = ORG, choices = VIDITELNOST)
|
zobrazit = models.IntegerField('Zobrazit?', default = ORG, choices = VIDITELNOST)
|
||||||
galerie_up = models.ForeignKey('Galerie', blank = True, null = True)
|
galerie_up = models.ForeignKey('Galerie', blank = True, null = True)
|
||||||
soustredeni = models.ForeignKey(Soustredeni, 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):
|
def __unicode__(self):
|
||||||
return self.nazev
|
return self.nazev
|
||||||
|
|
Loading…
Reference in a new issue