Added validations for credit card inputs. Made credit card holder's name default value empty in the model.

This commit is contained in:
PCoder 2017-07-16 15:23:18 +05:30
commit ba72527f2f
3 changed files with 116 additions and 46 deletions

View file

@ -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)