Updated contrib.admin to use Email/URLInputs; refs #16630

This commit is contained in:
Tim Graham 2013-07-26 07:22:30 -04:00
parent 7cca8d56d2
commit 2a979d2a7b
4 changed files with 18 additions and 6 deletions

View file

@ -13,6 +13,7 @@ class Member(models.Model):
name = models.CharField(max_length=100)
birthdate = models.DateTimeField(blank=True, null=True)
gender = models.CharField(max_length=1, blank=True, choices=[('M','Male'), ('F', 'Female')])
email = models.EmailField(blank=True)
def __str__(self):
return self.name