Commits

Anonymous committed a7d36f9

Make image ordre a PositiveIntegerField

Comments (0)

Files changed (1)

gnocchi/gallery/models.py

         height_field='height')
     gallery = models.ForeignKey(Gallery, related_name='images')
     name = models.CharField(max_length=128, blank=True)
-    order = models.IntegerField(default=0)
+    order = models.PositiveIntegerField(default=0)
     width = models.IntegerField(default=0)
     height = models.IntegerField(default=0)