mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-21 23:58:02 +01:00
Compare commits
2 commits
1300cb8c35
...
e6a8ff9082
Author | SHA1 | Date | |
---|---|---|---|
|
e6a8ff9082 | ||
|
170edb2261 |
4 changed files with 7 additions and 7 deletions
|
@ -40,17 +40,17 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: djhtml
|
- id: djhtml
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.1.6
|
rev: v0.1.7
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: v3.1.0
|
rev: v4.0.0-alpha.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
types_or: [javascript, css]
|
types_or: [javascript, css]
|
||||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||||
rev: v8.54.0
|
rev: v8.55.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: eslint
|
- id: eslint
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
|
@ -59,7 +59,7 @@ repos:
|
||||||
- eslint@8.36.0
|
- eslint@8.36.0
|
||||||
- eslint-config-prettier@8.5.0
|
- eslint-config-prettier@8.5.0
|
||||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||||
rev: 1.5.1
|
rev: 1.5.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyproject-fmt
|
- id: pyproject-fmt
|
||||||
- repo: https://github.com/jazzband/pip-tools
|
- repo: https://github.com/jazzband/pip-tools
|
||||||
|
|
|
@ -4,7 +4,7 @@ from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
def forwards(apps, schema_editor):
|
def forwards(apps, schema_editor):
|
||||||
BasketItem = apps.get_model("purchase", "BasketItem") # noqa: N806
|
BasketItem = apps.get_model("purchase", "BasketItem")
|
||||||
items = (
|
items = (
|
||||||
BasketItem.objects.using(schema_editor.connection.alias)
|
BasketItem.objects.using(schema_editor.connection.alias)
|
||||||
.all()
|
.all()
|
||||||
|
|
|
@ -5,7 +5,7 @@ from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
def delete_baskets_without_payment_method(apps, schema_editor):
|
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(
|
Basket.objects.using(schema_editor.connection.alias).filter(
|
||||||
payment_method=None,
|
payment_method=None,
|
||||||
).delete()
|
).delete()
|
||||||
|
|
|
@ -5,7 +5,7 @@ from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
def create_default_categories(apps, schema_editor):
|
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(
|
ProductCategory.objects.using(schema_editor.connection.alias).create(
|
||||||
name="default",
|
name="default",
|
||||||
color_hue=0,
|
color_hue=0,
|
||||||
|
|
Loading…
Reference in a new issue