mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Updated contrib.admin to use Email/URLInputs; refs #16630
This commit is contained in:
parent
7cca8d56d2
commit
2a979d2a7b
4 changed files with 18 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue