Skip to content

Commit fbd8c18

Browse files
Alex TsaiAlex Tsai
authored andcommitted
Should use "ordering" in model Meta, not order_by
1 parent ba951f3 commit fbd8c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/relations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In order to explain the various types of relational fields, we'll use a couple o
4646

4747
class Meta:
4848
unique_together = ('album', 'order')
49-
order_by = 'order'
49+
ordering = ['order']
5050

5151
def __unicode__(self):
5252
return '%d: %s' % (self.order, self.title)

0 commit comments

Comments
 (0)