mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Raise NotImplementedError instead of NotImplemented
This commit is contained in:
parent
8df41a9533
commit
686ddae81c
1 changed files with 1 additions and 1 deletions
|
|
@ -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, '
|
||||
|
|
|
|||
Loading…
Reference in a new issue