sorting the premiums turned out to be easy

pull/1/head
eric 2012-09-07 17:56:58 -04:00
parent 92a2ccc7ce
commit de9da54206
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ class Campaign(models.Model):
def custom_premiums(self): def custom_premiums(self):
"""returns only the active custom premiums for the Campaign""" """returns only the active custom premiums for the Campaign"""
return Premium.objects.filter(campaign=self).filter(type='CU') return Premium.objects.filter(campaign=self).filter(type='CU').order_by('amount')
@property @property
def rightsholder(self): def rightsholder(self):