Django menu item sorting

Posted by doktorno on Stack Overflow See other posts from Stack Overflow or by doktorno
Published on 2010-04-11T12:45:44Z Indexed on 2010/04/11 12:53 UTC
Read the original article Hit count: 172

Filed under:
|
|

Hi

i've got MenuItem model :

MenuItem(models.Model)
name=models.CharField(max_length=50)
url = models.URLField() 
position = models.IntegerField() 

Class Meta: 
ordering =['position'] 

then i'm retriving it by MenuItem.objects.all()

My question is how can i make any user friendly interface in admin panel to allow sorting MenuItems - for example list with + and - buttons to move MenuItem up and down ....

© Stack Overflow or respective owner

Related posts about django

Related posts about sorting