Commits

Mikela Clemmons  committed d9060b1

Added null true to order fields

  • Participants
  • Parent commits 7cd0b01

Comments (0)

Files changed (1)

File sponsors/models.py

     logo = models.ImageField(blank=True, null=True, upload_to='sponsor_logos')
     description = models.TextField(blank=True)
     stype = models.ForeignKey('SponsorType', related_name='sponsors')
-    order = models.SmallIntegerField(blank=True, unique=True, 
-                                choices=[(x, x) for x in range(-10, 11)],)
+    order = models.SmallIntegerField(blank=True, null=True, unique=True, 
+                                choices=[(x, x) for x in range(-10, 11)])
     
     class Meta:
         ordering = ('stype__order', 'order',)
 class SponsorType(models.Model):
     label = models.CharField(max_length=30)
     slug = models.SlugField(max_length=30)
-    order = models.SmallIntegerField(blank=True, unique=True, 
-                                choices=[(x, x) for x in range(-6, 6)],)
+    order = models.SmallIntegerField(blank=True, null=True, unique=True, 
+                                choices=[(x, x) for x in range(-10, 11)])
 
     class Meta:
         ordering = ('order',)