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.
On 4/26/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Being not native English speaker I can't really get the purpose or > order_with_respect_to just by reading docs. Looking at how it's > implemented I see that related objects get some sort index unique within > one parent record and can be ordered in creation order. But why it is > needed? Can someone give an example? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---