mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
a9e3907ed3
commit
aa28116197
3 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ from purchase.models import (
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = "Clear all data" # noqa: A003
|
help = "Clear all data"
|
||||||
|
|
||||||
def handle(self, *args, **options): # noqa: ARG002
|
def handle(self, *args, **options): # noqa: ARG002
|
||||||
self.delete(BasketItem)
|
self.delete(BasketItem)
|
||||||
|
|
|
@ -11,7 +11,7 @@ from purchase.models import Basket, BasketItem, Cache, PaymentMethod, Product
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = "Generates dummy baskets" # noqa: A003
|
help = "Generates dummy baskets"
|
||||||
|
|
||||||
def handle(self, *args, **options): # noqa: ARG002
|
def handle(self, *args, **options): # noqa: ARG002
|
||||||
call_command("loaddata", ["payment_methods", "products"])
|
call_command("loaddata", ["payment_methods", "products"])
|
||||||
|
|
|
@ -4,7 +4,7 @@ from purchase.models import Cache
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = "Refresh cache" # noqa: A003
|
help = "Refresh cache"
|
||||||
|
|
||||||
def handle(self, *args, **options): # noqa: ARG002
|
def handle(self, *args, **options): # noqa: ARG002
|
||||||
Cache.get_solo().refresh()
|
Cache.get_solo().refresh()
|
||||||
|
|
Loading…
Reference in a new issue