mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Update usage docs
This commit is contained in:
parent
795dc26275
commit
2e5f7addf4
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ Using Django Admin Sortable
|
|||
Models
|
||||
------
|
||||
|
||||
To add sorting to a model, your model needs to inherit from ``Sortable`` and have an inner ``Meta`` class that inherits from ``Sortable.Meta``::
|
||||
To add sorting to a model, your model needs to inherit from ``SortableMixin`` and at minimum, define an inner ``Meta.ordering`` value
|
||||
|
||||
# models.py
|
||||
from adminsortable.models import Sortable
|
||||
|
|
|
|||
Loading…
Reference in a new issue