From fbd8c18abd0e35595db81b8054d948a15196b73c Mon Sep 17 00:00:00 2001 From: Alex Tsai Date: Tue, 31 Mar 2015 17:30:04 -0700 Subject: [PATCH] Should use "ordering" in model Meta, not order_by --- docs/api-guide/relations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index 093bbdd05..31d59e1f8 100644 --- a/docs/api-guide/relations.md +++ b/docs/api-guide/relations.md @@ -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)