"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/users/migrations/0001_initial.py" (15 Jan 2020, 3265 Bytes) of package /linux/www/taiga-back-5.0.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "0001_initial.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 from __future__ import unicode_literals
    3 
    4 from django.db import models, migrations
    5 import django.utils.timezone
    6 import re
    7 import django.core.validators
    8 import taiga.users.models
    9 
   10 
   11 class Migration(migrations.Migration):
   12 
   13     dependencies = [
   14         ("contenttypes", "0001_initial"),
   15     ]
   16 
   17     operations = [
   18         migrations.CreateModel(
   19             name='User',
   20             fields=[
   21                 ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
   22                 ('password', models.CharField(max_length=128, verbose_name='password')),
   23                 ('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')),
   24                 ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
   25                 ('username', models.CharField(max_length=30, help_text='Required. 30 characters or fewer. Letters, numbers and /./-/_ characters', verbose_name='username', unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[\\w.-]+$', 32), 'Enter a valid username.', 'invalid')])),
   26                 ('email', models.EmailField(max_length=75, blank=True, verbose_name='email address')),
   27                 ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
   28                 ('full_name', models.CharField(max_length=256, blank=True, verbose_name='full name')),
   29                 ('color', models.CharField(default=taiga.users.models.generate_random_hex_color, max_length=9, blank=True, verbose_name='color')),
   30                 ('bio', models.TextField(default='', blank=True, verbose_name='biography')),
   31                 ('photo', models.FileField(null=True, max_length=500, blank=True, verbose_name='photo', upload_to='users/photo')),
   32                 ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
   33                 ('default_language', models.CharField(default='', max_length=20, blank=True, verbose_name='default language')),
   34                 ('default_timezone', models.CharField(default='', max_length=20, blank=True, verbose_name='default timezone')),
   35                 ('colorize_tags', models.BooleanField(default=False, verbose_name='colorize tags')),
   36                 ('token', models.CharField(default=None, max_length=200, blank=True, verbose_name='token', null=True)),
   37                 ('email_token', models.CharField(default=None, max_length=200, blank=True, verbose_name='email token', null=True)),
   38                 ('new_email', models.EmailField(null=True, max_length=75, blank=True, verbose_name='new email address')),
   39                 ('github_id', models.IntegerField(null=True, blank=True, verbose_name='github ID')),
   40             ],
   41             options={
   42                 'verbose_name_plural': 'users',
   43                 'permissions': (('view_user', 'Can view user'),),
   44                 'verbose_name': 'user',
   45                 'ordering': ['username'],
   46             },
   47             bases=(models.Model,),
   48         ),
   49     ]