Re: Making email unique

2010-03-28 Thread Gramware
On Mar 28, 6:44 pm, Wiiboy wrote: > Hi guys, > I've got a Python website that has to integrate with a forum (i.e. > when a user registers on mysite.com, they also have to be registered > automatically on forum.mysite.com).  That forum forces email addresses > to be unique.  How can I force that

Re: Making email unique

2010-03-28 Thread Vinicius Mendes
email = models.EmailField(unique=True) If it's using django.contrib.auth you can use something like this in the init of your project: from django.contrib.auth.models import User User._meta.get_field('email').unique = True __ Vinícius Mendes Solucione Sistemas http://solucione

Making email unique

2010-03-28 Thread Wiiboy
Hi guys, I've got a Python website that has to integrate with a forum (i.e. when a user registers on mysite.com, they also have to be registered automatically on forum.mysite.com). That forum forces email addresses to be unique. How can I force that on Django? -- You received this message becau