minor readme corrections
parent
0ae9b5819d
commit
9a03ea0564
6
README
6
README
|
|
@ -37,7 +37,8 @@ have an inner Meta class that inherits from ``Sortable.Meta``
|
||||||
from adminsortable.models import Sortable
|
from adminsortable.models import Sortable
|
||||||
|
|
||||||
class MySortableClass(Sortable):
|
class MySortableClass(Sortable):
|
||||||
class Meta(Sortable.Meta)
|
class Meta(Sortable.Meta):
|
||||||
|
pass
|
||||||
|
|
||||||
title = models.CharField(max_length=50)
|
title = models.CharField(max_length=50)
|
||||||
|
|
||||||
|
|
@ -56,7 +57,8 @@ even if that model does not inherit from Sortable:
|
||||||
...
|
...
|
||||||
|
|
||||||
class Project(Sortable):
|
class Project(Sortable):
|
||||||
class Meta(Sortable.Meta)
|
class Meta(Sortable.Meta):
|
||||||
|
pass
|
||||||
|
|
||||||
category = SortableForeignKey(Category)
|
category = SortableForeignKey(Category)
|
||||||
title = models.CharField(max_length=50)
|
title = models.CharField(max_length=50)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue