Fix E123 closing bracket does not match indentation of opening bracket's line

This commit is contained in:
Lucas Wiman 2018-07-02 12:57:14 -07:00
parent e23e86a2be
commit 0859508a64
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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:

View file

@ -6,7 +6,7 @@ from model_utils.fields import StatusField
from tests.models import (
Article, StatusFieldDefaultFilled, StatusFieldDefaultNotFilled,
StatusFieldChoicesName,
)
)
class StatusFieldTests(TestCase):