diff options
| author | Alex Tsai | 2015-03-31 17:30:04 -0700 |
|---|---|---|
| committer | Alex Tsai | 2015-03-31 17:30:04 -0700 |
| commit | fbd8c18abd0e35595db81b8054d948a15196b73c (patch) | |
| tree | ffa57d40ea090115ec6c6ebbe1bf0b25da5f435c | |
| parent | ba951f333988972392c5925070a2b980535cf930 (diff) | |
| download | django-rest-framework-fbd8c18abd0e35595db81b8054d948a15196b73c.tar.bz2 | |
Should use "ordering" in model Meta, not order_by
| -rw-r--r-- | docs/api-guide/relations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index 093bbdd0..31d59e1f 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) |
