On 4/26/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> Wilson Miner wrote:
> >To use the tutorial app as an example, if you have a number of choices
> >for each poll, you may want to make the choices orderable by an
> >arbitrary index within the poll, rather than sorting them
> >alphabetically. In that case you could set order_with_respect_to =
> >'poll_id' in your choices model.
> >
> >
> Wouldn't ordering = ('id',) also work?

No, ordering by ID wouldn't work, because you might want to change the
order of objects. Continuing Wilson's example, you may want to change
the ordering of choices for a given poll.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to