#13297: Cannot specify 'pk' in model default ordering ------------------------------------------+--------------------------------- Reporter: anonymous | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.1 Keywords: ordering pk | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- I wanted to make an explicit default ordering over a model's primary key (it does make sense in my app), but manage.py validate complains: "ordering" refers to "pk", a field that doesn't exist.
Specifying 'id' is fine with it. -- Ticket URL: <http://code.djangoproject.com/ticket/13297> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.