Skip to content

Saleor Core: the high performance, composable, headless commerce API.

More linter warnings

Patryk Zawadzki8e86af25de71
diff --git a/saleor/core/utils/__init__.py b/saleor/core/utils/__init__.py
index 37e94b6b0b..76f12fe70e 100644
--- a/saleor/core/utils/__init__.py
+++ b/saleor/core/utils/__init__.py
@@ -24,8 +24,8 @@ class CategoryChoiceField(forms.ModelChoiceField):
level = getattr(obj, obj._mptt_meta.level_attr)
indent = max(0, level - 1) * '│'
if obj.parent:
- last = ((obj.parent.rght - obj.rght == 1)
- and (obj.rght - obj.lft == 1))
+ last = ((obj.parent.rght - obj.rght == 1) and
+ (obj.rght - obj.lft == 1))
if last:
indent += '└ '
else:
diff --git a/saleor/registration/models.py b/saleor/registration/models.py
index a4530ae022..f283690a34 100644
--- a/saleor/registration/models.py
+++ b/saleor/registration/models.py
@@ -12,7 +12,7 @@ now = timezone.now
def default_valid_date():
- return now() + timedelta(settings.ACCOUNT_ACTIVATION_DAYS)
+ return now() + timedelta(settings.ACCOUNT_ACTIVATION_DAYS)
class ExternalUserData(models.Model):