Model entry does not get verified and no error raised
|Reported by:||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.3|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
user = models.ForeignKey(User)
mail = models.EmailField()
unique_together = (("user", "mail"),)
First of all, even on the command line you can enter anything in the mail-field. No verification.
While used this code:
## user defined, mail defined
m, created = DestMail.objects.get_or_create(user=user,mail=mail)
Object got created even if it existed. Neither "unique_together" does help.
I have to check anytime something is entered if it's not blank, because even blank entries got entered. Although there is no "blank=True" directive.
Didn't seem to have that problem with previous Django release. That's all I noticed so far.