Opened 8 years ago

Closed 8 years ago

#5036 closed (duplicate)

wrong typefield for email field in models.py

Reported by: popython@… Owned by: jacob
Component: Documentation Version: master
Severity: Keywords: EmailField
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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

Change History (1)

comment:1 Changed 8 years ago by gwilson

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

dup of #5037.

Note: See TracTickets for help on using tickets.
Back to Top