feat: update address working

This commit is contained in:
Pablo Moreno
2025-01-19 03:10:34 +01:00
parent f9e57c2339
commit b48f84c337
4 changed files with 39 additions and 4 deletions
+16
View File
@@ -1,6 +1,8 @@
from django import forms
from django.forms import widgets
from shop.models import CustomerAddress
class CartItemForm(forms.Form):
"""
@@ -35,3 +37,17 @@ class CreateOrderForm(forms.Form):
billing_address_phone = forms.CharField(max_length=16, required=False)
shipping_method = forms.IntegerField()
class CustomerAddressForm(forms.ModelForm):
class Meta:
model = CustomerAddress
fields = (
"vat_id",
"full_name",
"address",
"address_town",
"address_zip",
"address_state",
"address_phone",
)