Skip to content

Commit

Permalink
chore: sync payments model with website
Browse files Browse the repository at this point in the history
Needed for some default values.

Fixes WEBLATE-124Q
  • Loading branch information
nijel committed Oct 25, 2024
1 parent 443eeee commit 8508670
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions wlhosted/payments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,31 @@ class Customer(models.Model):
default="",
verbose_name=gettext_lazy("Address"),
)
address_2 = models.CharField(
max_length=200,
default="",
verbose_name=gettext_lazy("Additional address information"),
blank=True,
)
city = models.CharField(
max_length=200,
default="",
verbose_name=gettext_lazy("Postcode and city"),
)
country = CountryField(default="", verbose_name=gettext_lazy("Country"))
email = models.EmailField(blank=False, max_length=190, validators=[validate_email])
postcode = models.CharField(
max_length=20,
default="",
verbose_name=gettext_lazy("Postcode"),
)
country = CountryField(
default="",
verbose_name=gettext_lazy("Country"),
)
email = models.EmailField(
blank=True,
max_length=190,
validators=[validate_email],
)
origin = models.URLField(max_length=300)
user_id = models.IntegerField()

Expand Down

0 comments on commit 8508670

Please sign in to comment.