Right now model inheritance doesn't work properly in Django. It's a
goal for the future, but right now it's unsupported. Considering all
you have to do is add an IntegerField() and an 'ordering' property to
the inner Meta class, I don't think it's worth attempting to hack
together a MixIn anyway
You can set a value in a model and order_by that value.
I presume you're trying to optimize something, and don't want to have
the overhead of order_by for each call.
Ivan
On Jan 21, 1:15 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there some tool in Django to make a model
Hello,
Is there some tool in Django to make a model an ordered list where a
position field is stored in the database and methods like move_up() or
move_down() do the right thing?
If not, how would I go about doing it so it is reusable? a class to inherit
from in model classes (as the second clas
3 matches
Mail list logo