Re: What exactly does order_with_respect_to do?

2013-01-24 Thread Anton Agestam
Thanks for the correction, found this thread when Googleing for an explanation. On Tuesday, December 15, 2009 5:28:10 PM UTC+1, smcoll wrote: > > This is probably a dead thread, but... i think the answer given is > incorrect. > > 'order_with_respect_to' adds an '_order' integer field to the mo

Re: What exactly does order_with_respect_to do?

2009-12-15 Thread Hanne Moa
2009/12/15 smcoll : > i'd be curious to know if anyone has seen an admin implementation for > reordering with this field.  i'd also heard some chatter a while back > that this might be removed in future releases of Django, because it > leans toward the "magic" end of things I always end up making

Re: What exactly does order_with_respect_to do?

2009-12-15 Thread smcoll
This is probably a dead thread, but... i think the answer given is incorrect. 'order_with_respect_to' adds an '_order' integer field to the model. Each set of instances that share a parent object of the relation specified by 'order_with_respect_to' get ordered as a set. So in the example, three

Re: What exactly does order_with_respect_to do?

2009-11-30 Thread Preston Holmes
On Nov 29, 4:50 pm, Continuation wrote: > In the doc (http://docs.djangoproject.com/en/dev/ref/models/options/ > #order-with-respect-to) it is mentioned that  order_with_respect_to > marks an object as "orderable" with respect to a given field. > > What exactly does that mean? Can someone give m

Re: What exactly does order_with_respect_to do?

2009-11-30 Thread anentropic
I've been wondering this too, the docs aren't clear. On Nov 30, 12:50 am, Continuation wrote: > In the doc (http://docs.djangoproject.com/en/dev/ref/models/options/ > #order-with-respect-to) it is mentioned that  order_with_respect_to > marks an object as "orderable" with respect to a given field

What exactly does order_with_respect_to do?

2009-11-29 Thread Continuation
In the doc (http://docs.djangoproject.com/en/dev/ref/models/options/ #order-with-respect-to) it is mentioned that order_with_respect_to marks an object as "orderable" with respect to a given field. What exactly does that mean? Can someone give me an example of how this could be used? The doc's