diff --git a/shop/admin.py b/shop/admin.py index 2be8cb5..c7c60aa 100644 --- a/shop/admin.py +++ b/shop/admin.py @@ -8,7 +8,8 @@ from shop.models import ( Customer, Provider, Tag, - ProductBatch, Brand, + ProductBatch, + Brand, ) from unfold.admin import ModelAdmin diff --git a/shop/api/v1/viewsets.py b/shop/api/v1/viewsets.py index fd492dc..e4b028d 100644 --- a/shop/api/v1/viewsets.py +++ b/shop/api/v1/viewsets.py @@ -117,7 +117,7 @@ class TaxViewSet(ModelViewSet): serializer_class = TaxSerializer queryset = Tax.objects.all() permission_classes = (IsAdminUser,) - search_fields = ('code', ) + search_fields = ("code",) class OrderViewSet(ModelViewSet): diff --git a/shop/migrations/0009_brand_creation_date_brand_last_modification_date_and_more.py b/shop/migrations/0009_brand_creation_date_brand_last_modification_date_and_more.py index d6a352e..002a645 100644 --- a/shop/migrations/0009_brand_creation_date_brand_last_modification_date_and_more.py +++ b/shop/migrations/0009_brand_creation_date_brand_last_modification_date_and_more.py @@ -66,7 +66,9 @@ class Migration(migrations.Migration): model_name="product", name="creation_date", field=models.DateTimeField( - auto_now_add=True, default=django.utils.timezone.now, verbose_name="Fecha de creación" + auto_now_add=True, + default=django.utils.timezone.now, + verbose_name="Fecha de creación", ), preserve_default=False, ), diff --git a/shop/models.py b/shop/models.py index bf065ac..9fb07cb 100644 --- a/shop/models.py +++ b/shop/models.py @@ -91,7 +91,7 @@ class ProductPrice(TimestampedModel): on_delete=models.PROTECT, verbose_name=_("Impuesto aplicable"), ) - current = models.BooleanField(default=False, verbose_name=_('Es el precio actual')) + current = models.BooleanField(default=False, verbose_name=_("Es el precio actual")) def __str__(self): return f"{self.price} - {self.tax.code}"