#4895: IntegrityError django.newforms
-----------------------+----------------------------------------------------
Reporter: Jungle | Owner: adrian
Status: new | Component: django.newforms
Version: SVN | Keywords: IntegrityError django.newforms
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
method is_valid don't return error for unique fields
I'm using this model
{{{
class Account(models.Model):
provider = models.ForeignKey(Provider, verbose_name = 'Provider')
percent = models.PositiveSmallIntegerField(u'Percent', null = True,
blank = True)
aid = models.PositiveIntegerField(u'Affiliate ID')
skey = models.CharField(u'Secret key', maxlength = 256, blank = True)
class Meta:
unique_together = (('provider', 'aid'),)
}}}
When I try create instance of Account with exists fields in DB it raise
IntegrityError
P.S. sorry for my English
--
Ticket URL: <http://code.djangoproject.com/ticket/4895>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---