Merge pull request #23 from evildmp/master

Readme file meta class example
master
Brandon Taylor 2013-01-06 05:58:22 -08:00
commit 05c9119941
1 changed files with 4 additions and 2 deletions

6
README
View File

@ -37,7 +37,8 @@ have an inner Meta class that inherits from ``Sortable.Meta``
from adminsortable.models import Sortable
class MySortableClass(Sortable):
class Meta(Sortable.Meta)
class Meta(Sortable.Meta):
pass
title = models.CharField(max_length=50)
@ -56,7 +57,8 @@ even if that model does not inherit from Sortable:
...
class Project(Sortable):
class Meta(Sortable.Meta)
class Meta(Sortable.Meta):
pass
category = SortableForeignKey(Category)
title = models.CharField(max_length=50)