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 anyways.

On Jan 21, 3:15 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote:
> 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 class to inherit from)?
>
> Thanks.
> --
> J. Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to