1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

[1.6.x] Updated contrib.admin to use Email/URLInputs; refs #16630

Backport of 2a979d2a7b from master
This commit is contained in:
Tim Graham
2013-07-26 07:22:30 -04:00
parent 7f892cedba
commit 5cc1ea4773
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