chore: blacked
This commit is contained in:
+4
-2
@@ -356,8 +356,10 @@ class Order(TimestampedModel):
|
||||
default=Decimal("0"), max_digits=13, decimal_places=2, verbose_name=_("total")
|
||||
)
|
||||
|
||||
user = models.ForeignKey(User, blank=True, null=True, on_delete=models.PROTECT, verbose_name=_("cliente"))
|
||||
email = models.EmailField(blank=True, verbose_name=_('e-mail'))
|
||||
user = models.ForeignKey(
|
||||
User, blank=True, null=True, on_delete=models.PROTECT, verbose_name=_("cliente")
|
||||
)
|
||||
email = models.EmailField(blank=True, verbose_name=_("e-mail"))
|
||||
|
||||
# Datos de facturación
|
||||
billing_address = models.CharField(
|
||||
|
||||
+2
-2
@@ -90,13 +90,13 @@ def create_order_from_cart(
|
||||
email="",
|
||||
):
|
||||
order = Order.objects.create(
|
||||
billing_address=f'{billing_address_full_name} {billing_address_address}',
|
||||
billing_address=f"{billing_address_full_name} {billing_address_address}",
|
||||
billing_city=billing_address_town,
|
||||
billing_state=billing_address_state,
|
||||
billing_country=billing_address_country,
|
||||
billing_zip=billing_address_zip,
|
||||
contact_phone=shipping_address_phone,
|
||||
shipping_address=f'{shipping_address_address} {shipping_address_full_name}',
|
||||
shipping_address=f"{shipping_address_address} {shipping_address_full_name}",
|
||||
shipping_city=shipping_address_town,
|
||||
shipping_state=shipping_address_state,
|
||||
shipping_country=shipping_address_country,
|
||||
|
||||
Reference in New Issue
Block a user