Opened 18 years ago
Last modified 18 years ago
#5037 closed
wrong typefield for email field in models.py — at Initial Version
| Reported by: | Owned by: | Jacob | |
|---|---|---|---|
| Component: | Documentation | Version: | dev | 
| Severity: | Keywords: | EmailField | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
class Author(models.Model):
name = models.CharField(maxlength=50)
email = models.URLField()
def unicode(self):
return self.name
it should be : 
class Author(models.Model):
name = models.CharField(maxlength=50)
email = models.EmailField
def unicode(self):
return self.name
  Note:
 See   TracTickets
 for help on using tickets.