[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-12-11 21:18:56 +00:00 committed by crocmagnon-pr[bot]
parent c2a174cbcf
commit 2376fc7194
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ from django.db import migrations, models
def forwards(apps, schema_editor):
BasketItem = apps.get_model("purchase", "BasketItem") # noqa: N806
BasketItem = apps.get_model("purchase", "BasketItem")
items = (
BasketItem.objects.using(schema_editor.connection.alias)
.all()

View file

@ -5,7 +5,7 @@ from django.db import migrations, models
def delete_baskets_without_payment_method(apps, schema_editor):
Basket = apps.get_model("purchase", "Basket") # noqa: N806
Basket = apps.get_model("purchase", "Basket")
Basket.objects.using(schema_editor.connection.alias).filter(
payment_method=None,
).delete()

View file

@ -5,7 +5,7 @@ from django.db import migrations, models
def create_default_categories(apps, schema_editor):
ProductCategory = apps.get_model("purchase", "ProductCategory") # noqa: N806
ProductCategory = apps.get_model("purchase", "ProductCategory")
ProductCategory.objects.using(schema_editor.connection.alias).create(
name="default",
color_hue=0,