Questions tagged [database-integrity]
48 questions
0
votes
1 answer
how do i add a rails validation that negates existing rows
We have a standard email validation on a User model. The requirements change and say the new validation checks the format with a regexp, to not allow dashes in the emails.
Problem is, how do i avoid checking for existing users in the system that…

saGii
- 447
- 5
- 14
0
votes
1 answer
django integrity error, many to many relationship
That's my models.py:
class User(models.Model):
email = models.EmailField()
def __unicode__(self):
return str(self.email)
class Link(models.Model):
link = models.URLField()
users = models.ManyToManyField(User,…

andrew_vvv
- 75
- 1
- 1
- 5
-1
votes
3 answers
integrity error in django registration
So I'm getting this error in django 1.8. and django-registration-redux 1.1
. It doesn't let me sleep from 3 weeks. Help would be good .
IntegrityError at /accounts/register/
NOT NULL constraint failed:…

Maitrey Prajapati
- 13
- 1
- 3