mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Fix E123 closing bracket does not match indentation of opening bracket's line
This commit is contained in:
parent
e23e86a2be
commit
0859508a64
3 changed files with 5 additions and 5 deletions
|
|
@ -92,7 +92,7 @@ class Choices(object):
|
|||
raise ValueError(
|
||||
"Choices can't take a list of length %s, only 2 or 3"
|
||||
% len(choice)
|
||||
)
|
||||
)
|
||||
else:
|
||||
store((choice, choice, choice))
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ class Choices(object):
|
|||
return '%s(%s)' % (
|
||||
self.__class__.__name__,
|
||||
', '.join(("%s" % repr(i) for i in self._triples))
|
||||
)
|
||||
)
|
||||
|
||||
def __contains__(self, item):
|
||||
return item in self._db_values
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class InheritanceQuerySetMixin(object):
|
|||
raise ValueError(
|
||||
'%r is not in the discovered subclasses, tried: %s' % (
|
||||
subclass, ', '.join(calculated_subclasses))
|
||||
)
|
||||
)
|
||||
subclasses = verified_subclasses
|
||||
|
||||
# workaround https://code.djangoproject.com/ticket/16855
|
||||
|
|
@ -159,7 +159,7 @@ class InheritanceQuerySetMixin(object):
|
|||
if isinstance(rel.field, OneToOneField)
|
||||
and issubclass(rel.field.model, model)
|
||||
and model is not rel.field.model
|
||||
]
|
||||
]
|
||||
|
||||
subclasses = []
|
||||
if levels:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from model_utils.fields import StatusField
|
|||
from tests.models import (
|
||||
Article, StatusFieldDefaultFilled, StatusFieldDefaultNotFilled,
|
||||
StatusFieldChoicesName,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class StatusFieldTests(TestCase):
|
||||
|
|
|
|||
Loading…
Reference in a new issue