Merge pull request #155 from stvnw/fix

Raise NotImplementedError instead of NotImplemented
master
Brandon Taylor 2016-10-26 15:18:08 -04:00 committed by GitHub
commit 020dfe89dd
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class SortableMixin(models.Model):
# check that the order field is an integer type
if not self.order_field or not isinstance(self.order_field,
integer_fields):
raise NotImplemented(u'You must define the field '
raise NotImplementedError(u'You must define the field '
'`Meta.ordering` refers to, and it must be of type: '
'PositiveIntegerField, IntegerField, '
'PositiveSmallIntegerField, SmallIntegerField, '