Working on updating documentation and sample project

This commit is contained in:
Brandon Taylor
2013-02-28 22:07:16 -05:00
parent 8662ebae88
commit cffbd8534e
7 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION = (1, 3, 9) # following PEP 386
VERSION = (1, 4, 0) # following PEP 386
DEV_N = None
+5 -3
View File
@@ -4,14 +4,16 @@ from django.db.models.fields.related import ForeignKey
class SortableForeignKey(ForeignKey):
"""
Field simply acts as a flag to determine the class to sort by.
This field replaces previous functionality where `sortable_by` was definied as a model property
that specified another model class.
This field replaces previous functionality where `sortable_by` was
definied as a model property that specified another model class.
"""
def south_field_triple(self):
try:
from south.modelsinspector import introspector
cls_name = '{0}.{1}'.format(self.__class__.__module__, self.__class__.__name__)
cls_name = '{0}.{1}'.format(
self.__class__.__module__,
self.__class__.__name__)
args, kwargs = introspector(self)
return cls_name, args, kwargs
except ImportError: