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
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
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
3 matches
Mail list logo