#16060: Model entry does not get verified and no error raised ---------------------------+---------------------------------------------- Reporter: m.vovcu@… | Owner: nobody Type: Uncategorized | Status: new Milestone: | Component: Database layer (models, ORM) Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 ---------------------------+---------------------------------------------- Model:
class DestMail(models.Model): user = models.ForeignKey(User)[[BR]] mail = models.EmailField()[[BR]] class Meta: unique_together = (("user", "mail"),) def __unicode__(self): return self.mail First of all, even on the command line you can enter anything in the mail- field. No verification. While used this code:[[BR]] ## user defined, mail defined[[BR]] 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. marius -- Ticket URL: <https://code.djangoproject.com/ticket/16060> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.