Update usage.rst

This commit is contained in:
Brandon Taylor 2014-08-25 09:26:08 -04:00
parent 76f3541c0d
commit ac7e03c611

View file

@ -20,9 +20,9 @@ To add sorting to a model, your model needs to inherit from ``Sortable`` and hav
It is also possible to order objects relative to another object that is a ForeignKey.
.. 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
class Category(Sortable):