mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Update usage.rst
This commit is contained in:
parent
6c04e3b8df
commit
76f3541c0d
1 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ 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 ``Sortable`` and have an inner ``Meta`` class that inherits from ``Sortable.Meta``
|
||||
::
|
||||
# models.py
|
||||
from adminsortable.models import Sortable
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue