How does EmailProperty
differ from StringProperty
? Consider these two examples:
# example 1: store an e-mail address in an EmailProperty
class MyModel(db.Model):
email_address = db.EmailProperty()
m = MyModel()
m.email_address = db.Email("[email protected]")
# example 2: store an e-mail address in a StringProperty
class MyModel(db.Model):
email_address = db.StringProperty()
m = MyModel()
m.email_address = "[email protected]"