From e6a8ff908251ba3ef988a88d03e951404dd16497 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:18:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/purchase/migrations/0006_basketitem_unit_price_cents.py | 2 +- src/purchase/migrations/0014_alter_basket_payment_method.py | 2 +- src/purchase/migrations/0017_productcategory.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/purchase/migrations/0006_basketitem_unit_price_cents.py b/src/purchase/migrations/0006_basketitem_unit_price_cents.py index a2de58f..dd52086 100644 --- a/src/purchase/migrations/0006_basketitem_unit_price_cents.py +++ b/src/purchase/migrations/0006_basketitem_unit_price_cents.py @@ -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() diff --git a/src/purchase/migrations/0014_alter_basket_payment_method.py b/src/purchase/migrations/0014_alter_basket_payment_method.py index 6be2bb4..f6577f6 100644 --- a/src/purchase/migrations/0014_alter_basket_payment_method.py +++ b/src/purchase/migrations/0014_alter_basket_payment_method.py @@ -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() diff --git a/src/purchase/migrations/0017_productcategory.py b/src/purchase/migrations/0017_productcategory.py index 7caa7ac..cd749a7 100644 --- a/src/purchase/migrations/0017_productcategory.py +++ b/src/purchase/migrations/0017_productcategory.py @@ -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,