Raise NotImplementedError instead of NotImplemented

master
Steven Wood 2016-10-23 10:20:45 -04:00
parent 8df41a9533
commit 686ddae81c
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, '