Skip to content

Commit

Permalink
Merge pull request #2782 from caffodian/master
Browse files Browse the repository at this point in the history
Should use "ordering" in model Meta, not order_by in Serializer Relations example [documentation]
  • Loading branch information
kevin-brown committed Apr 1, 2015
2 parents ba951f3 + fbd8c18 commit ad8de23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ In order to explain the various types of relational fields, we'll use a couple o

class Meta:
unique_together = ('album', 'order')
order_by = 'order'
ordering = ['order']

def __unicode__(self):
return '%d: %s' % (self.order, self.title)
Expand Down

0 comments on commit ad8de23

Please sign in to comment.