#10748: Incorrect example code for ordering in class Meta:
--------------------------------------+-------------------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version:
Keywords: | Stage: Unreviewed
Has_patch: 0 |
--------------------------------------+-------------------------------------
http://www.djangoproject.com/documentation/models/ordering/
Has
class Meta:
ordering = ('-pub_date', 'headline')
should be
class Meta:
ordering = ['-pub_date', 'headline']
--
Ticket URL: <http://code.djangoproject.com/ticket/10748>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---