Update usage.rst

master
Brandon Taylor 2014-08-25 09:24:22 -04:00
parent 969ee2f653
commit 63e123e4fc
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ It is also possible to order objects relative to another object that is a Foreig
.. note:: A small caveat here is that ``Category`` must also either inherit from ``Sortable`` or include an ``order`` property which is a ``PositiveSmallInteger`` field. This is due to the way Django admin instantiates classes. .. note:: A small caveat here is that ``Category`` must also either inherit from ``Sortable`` or include an ``order`` property which is a ``PositiveSmallInteger`` field. This is due to the way Django admin instantiates classes.
from adminsortable.fields import SortableForeignKey from adminsortable.fields import SortableForeignKey
# models.py # models.py
class Category(Sortable): class Category(Sortable):