Hi,
I've stumbled on OrderingField in django.db.models.fields.
That looks very interesting to me but I could not find any example of
use, either in Django itself or on the web.
Do you know what it is, and how to use it?
Thanks Karen for the clarification! That code looked dead to me too...
is that worth filing a ticket?
It seemed interesting to me because I was looking for some kind of
mechanism that would make it easy to define "orderable" objects. For
example, elements of a list, or children of a tree branch, ordered by
an arbitrary integer value. I have implemented that mechanism once,
but I found it very tedious to maintain. To me it seems like a generic
behaviour so I was hoping Django would offer something out of the
box :)
Is there anything in Django that helps with that? If not, I have found
that code [1], which looks like a good start. What do you think?
It's not harmful and it could well be useful to some people who are
using with order_with_respect_to, for example.
Regards,
Malcolm
--
The cost of feathers has risen; even down is up!
http://www.pointy-stick.com/blog/
Scrub that. For some reason my brain had switched over to thinking about
form fields, not model fields. On second glance, this doesn't seem to be
particularly useful as it stands. We could consider removing it.
Malcolm
--
If it walks out of your refrigerator, LET IT GO!!
http://www.pointy-stick.com/blog/