Order items with the django-admin interface

前端 未结 4 1692
夕颜
夕颜 2021-02-08 14:23

Lets say I have a django model looking like this:

class question(models.Model):
  order = models.IntegerField(\'Position\')
  question = models.CharField(max_len         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-08 14:47

    Check this: django-orderedmodel.

    This is a really simple implementation of abstract base class for items which can be ordered with admin interface. No external dependencies and easy to use.

提交回复
热议问题