Commits

Luke Plant  committed 11fb086

Corrected use of Price.Meta.unique_together

  • Participants
  • Parent commits 9c6aafc

Comments (0)

Files changed (1)

File cciw/bookings/models.py

     price = models.DecimalField(decimal_places=2, max_digits=10)
 
     class Meta:
-        unique_together = ['year', 'price_type']
+        unique_together = [('year', 'price_type')]
 
     def __unicode__(self):
         return u"%s %s - %s" % (self.get_price_type_display(), self.year, self.price)