Commit 3afc96cc authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch '33' into 'master'

bugfix: Add uniqueness constraint on user email...

See merge request !34
parents f1ff515c 0f28d57a
Pipeline #6615 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-12-03 09:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0003_auto_20191024_0854'),
operations = [
field=models.EmailField(blank=True, error_messages={'unique': 'A user with that uses this email address already exists.'}, max_length=254, unique=True, verbose_name='email address'),
......@@ -55,6 +55,14 @@ class LDPUser(AbstractUser, Model):
'unique': _("A user with that username already exists."),
email = models.EmailField(
_('email address'),
'unique': _("A user with that uses this email address already exists."),
class Meta:
verbose_name = _('user')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment