add city and province fields

This commit is contained in:
Parsa Nazer
2025-02-02 18:27:22 +03:30
parent 85bfb347b2
commit c86732a79d
3 changed files with 28 additions and 2 deletions
+2 -1
View File
@@ -110,6 +110,7 @@ class UserAddressModel(models.Model):
address = models.TextField()
postal_code = models.CharField(max_length=10)
phone = models.CharField(max_length=11)
city = models.CharField(max_length=30)
province = models.CharField(max_length=30)
def __str__(self):
return f"{self.user.phone}, {self.name}"