Commits

Anonymous committed a7d36f9

Make image ordre a PositiveIntegerField

  • Participants
  • Parent commits d8c21d7

Comments (0)

Files changed (1)

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