~linuxgoose/bocpress

ref: fc7fd38fc9a86697d34a1476f78013539452d592 bocpress/main/migrations/0072_alter_user_username.py -rw-r--r-- 807 bytes
fc7fd38fJordan Robinson add dashboard welcome text 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Generated by Django 4.0.3 on 2022-04-11 22:53

from django.db import migrations, models

import main.validators


class Migration(migrations.Migration):
    dependencies = [
        ("main", "0071_user_monero_address"),
    ]

    operations = [
        migrations.AlterField(
            model_name="user",
            name="username",
            field=models.CharField(
                error_messages={"unique": "A user with that username already exists."},
                help_text="This is your subdomain. Lowercase alphanumeric.",
                max_length=150,
                unique=True,
                validators=[
                    main.validators.AlphanumericHyphenValidator(),
                    main.validators.HyphenOnlyValidator(),
                ],
            ),
        ),
    ]