Have you looked at the "order_with_respect_to" meta option in your model?

On 3/30/06, patrickk <[EMAIL PROTECTED]> wrote:
>
> i´m just trying to implement buttons for moving up/down elements in
> the admin-interface (which should be replaced with ajax-drag later on).
> therefore, my model has a field "position" (positivesmallinteger).
>
> has anyone already written a function for changing the position-field?
> or does anyone know where i can get one - my own function (taken from a
> previous php-project) seems over-complicated.
> it should also be possible to edit every record seperately - when i
> change the position-field for a single record, all the other
> position-fields should be changed accordingly.
>
> i don´t publish my code here, because (at the present stage) it´s too
> complicated and hard to follow. still hope that you get my idea ...
> btw, i´m using a manipulator with "follow" (so only the position-field
> changes).
>
> thanks,
> patrick
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to