Lets say I have a django model looking like this:
class question(models.Model):
order = models.IntegerField(\'Position\')
question = models.CharField(max_len
Sure, here is an example of admin.py file with up and down links to change items order: https://github.com/alexvasi/django-simplemenu/blob/master/simplemenu/admin.py
Basically, you just need to override get_urls method to add your custom views (move_up
and move_down
in this example).
More famous example would be django-treemenus, but there is some extra code to support older versions of django.