Update README.md

master
Brandon Taylor 2014-09-21 19:35:21 -04:00
parent 13c84e8d0b
commit 9935f65ca0
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ Inlines may be drag-and-dropped into any order directly from the change form.
To add sorting to a model, your model needs to inherit from `Sortable` and To add sorting to a model, your model needs to inherit from `Sortable` and
have an inner Meta class that inherits from `Sortable.Meta` have an inner Meta class that inherits from `Sortable.Meta`
#models.py # models.py
from adminsortable.models import Sortable from adminsortable.models import Sortable
class MySortableClass(Sortable): class MySortableClass(Sortable):
@ -96,7 +96,7 @@ A common use case is to have child objects that are sortable relative to a paren
def __unicode__(self): def __unicode__(self):
return self.title return self.title
# admin # admin.py
from adminsortable.admin import SortableAdmin from adminsortable.admin import SortableAdmin
from your_app.models import Category, Project from your_app.models import Category, Project