mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Compare commits
1 commit
e6a8ff9082
...
1300cb8c35
Author | SHA1 | Date | |
---|---|---|---|
|
1300cb8c35 |
4 changed files with 5 additions and 5 deletions
|
@ -40,12 +40,12 @@ repos:
|
|||
hooks:
|
||||
- id: djhtml
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.1.7
|
||||
rev: v0.1.6
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix]
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v4.0.0-alpha.4
|
||||
rev: v4.0.0-alpha.3
|
||||
hooks:
|
||||
- id: prettier
|
||||
types_or: [javascript, css]
|
||||
|
|
|
@ -4,7 +4,7 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
def forwards(apps, schema_editor):
|
||||
BasketItem = apps.get_model("purchase", "BasketItem")
|
||||
BasketItem = apps.get_model("purchase", "BasketItem") # noqa: N806
|
||||
items = (
|
||||
BasketItem.objects.using(schema_editor.connection.alias)
|
||||
.all()
|
||||
|
|
|
@ -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")
|
||||
Basket = apps.get_model("purchase", "Basket") # noqa: N806
|
||||
Basket.objects.using(schema_editor.connection.alias).filter(
|
||||
payment_method=None,
|
||||
).delete()
|
||||
|
|
|
@ -5,7 +5,7 @@ from django.db import migrations, models
|
|||
|
||||
|
||||
def create_default_categories(apps, schema_editor):
|
||||
ProductCategory = apps.get_model("purchase", "ProductCategory")
|
||||
ProductCategory = apps.get_model("purchase", "ProductCategory") # noqa: N806
|
||||
ProductCategory.objects.using(schema_editor.connection.alias).create(
|
||||
name="default",
|
||||
color_hue=0,
|
||||
|
|
Loading…
Reference in a new issue