Commit fbd8c18a by Alex Tsai

Should use "ordering" in model Meta, not order_by

parent ba951f33
...@@ -46,7 +46,7 @@ In order to explain the various types of relational fields, we'll use a couple o ...@@ -46,7 +46,7 @@ In order to explain the various types of relational fields, we'll use a couple o
class Meta: class Meta:
unique_together = ('album', 'order') unique_together = ('album', 'order')
order_by = 'order' ordering = ['order']
def __unicode__(self): def __unicode__(self):
return '%d: %s' % (self.order, self.title) return '%d: %s' % (self.order, self.title)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment