Added validations for credit card inputs. Made credit card holder's name default value empty in the model.
This commit is contained in:
parent
b64198c2c0
commit
ba72527f2f
3 changed files with 116 additions and 46 deletions
|
|
@ -8,7 +8,7 @@ from .fields import CountryField
|
|||
# Create your models here.
|
||||
|
||||
class BaseBillingAddress(models.Model):
|
||||
cardholder_name = models.CharField(max_length=100)
|
||||
cardholder_name = models.CharField(max_length=100, default="")
|
||||
street_address = models.CharField(max_length=100)
|
||||
city = models.CharField(max_length=50)
|
||||
postal_code = models.CharField(max_length=50)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue