Projet

Général

Profil

0001-misc-increase-allowed-length-of-first-name-attribute.patch

Frédéric Péters, 25 septembre 2018 11:08

Télécharger (2,16 ko)

Voir les différences:

Subject: [PATCH] misc: increase allowed length of first name attribute
 (#26698)

 .../migrations/0016_auto_20180925_1107.py     | 20 +++++++++++++++++++
 src/authentic2/custom_user/models.py          |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 src/authentic2/custom_user/migrations/0016_auto_20180925_1107.py
src/authentic2/custom_user/migrations/0016_auto_20180925_1107.py
1
# -*- coding: utf-8 -*-
2
# Generated by Django 1.11.12 on 2018-09-25 09:07
3
from __future__ import unicode_literals
4

  
5
from django.db import migrations, models
6

  
7

  
8
class Migration(migrations.Migration):
9

  
10
    dependencies = [
11
        ('custom_user', '0015_auto_20170707_1653'),
12
    ]
13

  
14
    operations = [
15
        migrations.AlterField(
16
            model_name='user',
17
            name='first_name',
18
            field=models.CharField(blank=True, max_length=128, verbose_name='first name'),
19
        ),
20
    ]
src/authentic2/custom_user/models.py
83 83
    uuid = models.CharField(_('uuid'), max_length=32,
84 84
            default=utils.get_hex_uuid, editable=False, unique=True)
85 85
    username = models.CharField(_('username'), max_length=256, null=True, blank=True)
86
    first_name = models.CharField(_('first name'), max_length=64, blank=True)
86
    first_name = models.CharField(_('first name'), max_length=128, blank=True)
87 87
    last_name = models.CharField(_('last name'), max_length=64, blank=True)
88 88
    email = models.EmailField(_('email address'), blank=True,
89 89
            validators=[validators.EmailValidator], max_length=254)
90
-