Exemplo n.º 1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('birth_date', models.DateField(blank=True, null=True)),
                ('postal_code', models.CharField(max_length=10)),
                ('phone', models.CharField(blank=True, max_length=15)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('users', '0003_user_profile'),
    ]

    operations = [
        migrations.AddField(
            model_name='user',
            name='biography',
            field=models.TextField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='user',
            name='profile',
            field=models.ImageField(
                blank=True,
                null=True,
                storage=zhu_core.utils.OverwriteStorage(),
                upload_to=apps.users.models.create_profile_path),
        ),
    ]
Exemplo n.º 3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Usuario',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('expediente', models.IntegerField(default=0)),
                ('correo', models.EmailField(max_length=254)),
                ('nombre', models.CharField(max_length=80)),
                ('is_tutor', models.BooleanField(default=False)),
                ('is_tutorado', models.BooleanField(default=False)),
                ('is_admin', models.BooleanField(default=False)),
                ('is_profesor', models.BooleanField(default=False)),
                ('foto',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=apps.users.models.get_upload_path_user_image)),
                ('descripcion', models.TextField(blank=True)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):
    dependencies = [
        ('users', '0006_auto_20200622_2217'),
    ]

    operations = [
        migrations.AlterField(
            model_name='user',
            name='photo',
            field=easy_thumbnails.fields.ThumbnailerImageField(
                blank=True,
                null=True,
                upload_to=apps.users.models.User.get_path),
        ),
        migrations.CreateModel(
            name='Note',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('note',
                 models.TextField(blank=True, null=True, verbose_name='Note')),
                ('creation_time',
                 models.DateTimeField(auto_now_add=True, null=True)),
                ('last_update_time',
                 models.DateTimeField(auto_now=True, null=True)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='notes',
                     to=settings.AUTH_USER_MODEL,
                     verbose_name='Notes')),
            ],
        ),
    ]
Exemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Perfil',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('telefone',
                 phonenumber_field.modelfields.PhoneNumberField(max_length=128,
                                                                region=None,
                                                                unique=True)),
                ('nome', models.CharField(max_length=300)),
                ('avatar',
                 models.ImageField(
                     null=True,
                     upload_to=apps.users.models.upload_directory_path)),
                ('token', models.CharField(blank=True,
                                           max_length=30,
                                           null=True)),
                ('is_active', models.BooleanField(default=False)),
                ('is_admin', models.BooleanField(default=False)),
                ('is_staff', models.BooleanField(default=False)),
                ('groups',
                 models.ManyToManyField(
                     blank=True,
                     help_text=
                     'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Group',
                     verbose_name='groups')),
            ],
            options={
                'ordering': ['nome'],
            },
        ),
        migrations.CreateModel(
            name='Grupo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('nome', models.CharField(max_length=300)),
                ('logo',
                 models.ImageField(
                     null=True,
                     upload_to=apps.users.models.upload_directory_path)),
                ('url', models.URLField(blank=True, null=True)),
                ('descricao', models.TextField(blank=True, null=True)),
                ('deleted', models.BooleanField(default=False)),
                ('criador',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='perfil',
            name='grupos',
            field=models.ManyToManyField(blank=True, to='users.Grupo'),
        ),
        migrations.AddField(
            model_name='perfil',
            name='user_permissions',
            field=models.ManyToManyField(
                blank=True,
                help_text='Specific permissions for this user.',
                related_name='user_set',
                related_query_name='user',
                to='auth.Permission',
                verbose_name='user permissions'),
        ),
    ]
Exemplo n.º 6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("storage", "0001_initial"),
        ("geo", "0001_initial"),
        ("auth", "0009_alter_user_last_name_max_length"),
    ]

    operations = [
        migrations.CreateModel(
            name="User",
            fields=[
                ("password",
                 models.CharField(max_length=128, verbose_name="password")),
                ("last_login",
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name="last login")),
                (
                    "id",
                    models.UUIDField(db_column="uuid",
                                     default=uuid.uuid4,
                                     editable=False,
                                     primary_key=True,
                                     serialize=False),
                ),
                (
                    "status",
                    models.CharField(
                        choices=[("deleted", "Deleted"),
                                 ("created", "Created"),
                                 ("approved", "Approved")],
                        default="created",
                        max_length=32,
                        verbose_name="Status",
                    ),
                ),
                ("created_date",
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name="Created date")),
                ("updated_date",
                 models.DateTimeField(auto_now=True,
                                      verbose_name="Updated date")),
                ("email",
                 models.EmailField(max_length=254,
                                   unique=True,
                                   verbose_name="Email")),
                ("username",
                 models.CharField(max_length=150, verbose_name="Username")),
                ("age",
                 models.CharField(max_length=64, null=True,
                                  verbose_name="Age")),
                (
                    "gender",
                    models.CharField(
                        choices=[
                            ("m", "M"),
                            ("w", "W"),
                            ("family", "Family"),
                            ("mw", "MW"),
                            ("mm", "MM"),
                            ("ww", "WW"),
                            ("trans", "Trans"),
                        ],
                        max_length=16,
                        null=True,
                        verbose_name="Gender",
                    ),
                ),
                (
                    "relationship_status",
                    models.CharField(
                        choices=[("married", "Married"), ("dating", "Dating"),
                                 ("single", "Single")],
                        max_length=16,
                        null=True,
                        verbose_name="Relationship status",
                    ),
                ),
                (
                    "relationship_formats",
                    django.contrib.postgres.fields.ArrayField(
                        base_field=models.CharField(
                            choices=[
                                ("open_swing", "Open Swing"),
                                ("close_swing", "Close Swing"),
                                ("soft_swing", "Soft Swing"),
                                ("wmw", "WMW"),
                                ("mwm", "MWM"),
                                ("sexwife", "Sexwife"),
                                ("cuckold", "Cuckold"),
                            ],
                            max_length=16,
                        ),
                        null=True,
                        size=None,
                        verbose_name="Relationship formats",
                    ),
                ),
                (
                    "relationship_themes",
                    django.contrib.postgres.fields.ArrayField(
                        base_field=models.CharField(
                            choices=[
                                ("swing", "Swing"),
                                ("swing_history", "Swing History"),
                                ("bdsm", "Bdsm"),
                                ("bdsm_history", "Bdsm History"),
                                ("rule", "Rule"),
                                ("rule_media", "Rule Media"),
                                ("advertisment", "Advertisment"),
                            ],
                            max_length=16,
                        ),
                        null=True,
                        size=None,
                        verbose_name="Relationship themes",
                    ),
                ),
                ("vk_link",
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name="Vkontakte link")),
                ("ok_link",
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name="Odnoklassniki link")),
                ("fb_link",
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name="Facebook link")),
                ("about",
                 models.TextField(blank=True, null=True,
                                  verbose_name="О себе")),
                (
                    "role",
                    models.CharField(
                        choices=[
                            ("guest", "Guest"),
                            ("member", "Member"),
                            ("organizer", "Organizer"),
                            ("moderator", "Moderator"),
                            ("administrator", "Administrator"),
                        ],
                        default="guest",
                        max_length=16,
                        verbose_name="Role",
                    ),
                ),
                ("is_real",
                 models.BooleanField(default=False, verbose_name="Real")),
                ("is_superuser",
                 models.BooleanField(default=False,
                                     verbose_name="System administrator")),
                ("is_staff",
                 models.BooleanField(default=False, verbose_name="Staff")),
                ("is_active",
                 models.BooleanField(default=False, verbose_name="Active")),
                ("signup_key",
                 models.PositiveIntegerField(blank=True,
                                             null=True,
                                             verbose_name="SignUp Key")),
                (
                    "reset_password_key",
                    models.PositiveIntegerField(
                        blank=True,
                        null=True,
                        verbose_name="Reset Password Key"),
                ),
                (
                    "show_age",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="only_friends",
                        max_length=16,
                        verbose_name="Show age",
                    ),
                ),
                (
                    "show_avatar",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="all_users",
                        max_length=16,
                        verbose_name="Show avatar",
                    ),
                ),
                (
                    "show_geo",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="all_users",
                        max_length=16,
                        verbose_name="Show geo",
                    ),
                ),
                (
                    "show_email",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="no_users",
                        max_length=16,
                        verbose_name="Show email",
                    ),
                ),
                (
                    "show_social",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="no_users",
                        max_length=16,
                        verbose_name="Show social",
                    ),
                ),
                (
                    "show_media",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="only_friends",
                        max_length=16,
                        verbose_name="Show media",
                    ),
                ),
                (
                    "show_posts",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="only_friends",
                        max_length=16,
                        verbose_name="Show posts",
                    ),
                ),
                (
                    "show_friends",
                    models.CharField(
                        choices=[
                            ("no_users", "No users"),
                            ("only_friends", "Only friends"),
                            ("all_users", "All users"),
                        ],
                        default="only_friends",
                        max_length=16,
                        verbose_name="Show friends",
                    ),
                ),
                (
                    "approver",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        related_name="approver_real_users",
                        to=settings.AUTH_USER_MODEL,
                        verbose_name="Approver real status",
                    ),
                ),
                (
                    "avatar",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="storage.Image",
                        verbose_name="Avatar",
                    ),
                ),
                (
                    "city",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to="geo.City",
                        verbose_name="City"),
                ),
                (
                    "country",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to="geo.Country",
                        verbose_name="Country"),
                ),
                (
                    "groups",
                    models.ManyToManyField(
                        blank=True,
                        help_text=
                        "The groups this user belongs to. A user will get all permissions granted to each of their groups.",
                        related_name="user_set",
                        related_query_name="user",
                        to="auth.Group",
                        verbose_name="groups",
                    ),
                ),
                (
                    "region",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to="geo.Region",
                        verbose_name="Region"),
                ),
                (
                    "user_permissions",
                    models.ManyToManyField(
                        blank=True,
                        help_text="Specific permissions for this user.",
                        related_name="user_set",
                        related_query_name="user",
                        to="auth.Permission",
                        verbose_name="user permissions",
                    ),
                ),
            ],
            options={
                "verbose_name": "user",
                "verbose_name_plural": "users"
            },
            managers=[("objects", apps.users.models.UserManager())],
        ),
        migrations.CreateModel(
            name="UserFriend",
            fields=[
                (
                    "id",
                    models.UUIDField(db_column="uuid",
                                     default=uuid.uuid4,
                                     editable=False,
                                     primary_key=True,
                                     serialize=False),
                ),
                (
                    "status",
                    models.CharField(
                        choices=[("deleted", "Deleted"),
                                 ("created", "Created"),
                                 ("approved", "Approved")],
                        default="created",
                        max_length=32,
                        verbose_name="Status",
                    ),
                ),
                ("created_date",
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name="Created date")),
                ("updated_date",
                 models.DateTimeField(auto_now=True,
                                      verbose_name="Updated date")),
                (
                    "friend",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                        verbose_name="Content type",
                    ),
                ),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="user_friends",
                        to=settings.AUTH_USER_MODEL,
                        verbose_name="User",
                    ),
                ),
            ],
            options={
                "verbose_name": "user friend",
                "verbose_name_plural": "user friend"
            },
        ),
        migrations.AlterUniqueTogether(name="userfriend",
                                       unique_together={("user", "friend")}),
    ]
Exemplo n.º 7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('username',
                 models.CharField(
                     error_messages={
                         'unique': 'A user with that username already exists.'
                     },
                     help_text=
                     'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
                     max_length=150,
                     unique=True,
                     validators=[
                         django.contrib.auth.validators.
                         UnicodeUsernameValidator()
                     ],
                     verbose_name='username')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=30,
                                  verbose_name='first name')),
                ('last_name',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='last name')),
                ('email',
                 models.EmailField(blank=True,
                                   max_length=254,
                                   verbose_name='email address')),
                ('is_staff',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates whether the user can log into this admin site.',
                     verbose_name='staff status')),
                ('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')),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='date joined')),
                ('about_me', models.TextField(blank=True, max_length=500)),
                ('user_type',
                 models.IntegerField(
                     choices=[(1, 'Reader'), (2, 'Author'), (3, 'Manager')])),
                ('avatar',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=apps.users.models.get_image_path)),
                ('groups',
                 models.ManyToManyField(
                     blank=True,
                     help_text=
                     'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Group',
                     verbose_name='groups')),
                ('user_permissions',
                 models.ManyToManyField(
                     blank=True,
                     help_text='Specific permissions for this user.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Permission',
                     verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
    ]
Exemplo n.º 8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0008_alter_user_username_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='ItUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('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')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='Логин')),
                ('first_name', models.CharField(max_length=30, verbose_name='Имя')),
                ('last_name', models.CharField(max_length=30, verbose_name='Фамилия')),
                ('specialty', models.CharField(choices=[('bkd', 'бекенд-разработчик'), ('frd', 'фронтенд-разработчик'), ('and', 'android-разработчик'), ('ios', 'ios-разработчик'), ('dsn', 'дизайнер'), ('vrk', 'верстальщик'), ('dsp', 'десктоп-разработчик')], max_length=100, verbose_name='Специальность')),
                ('birth', models.DateField(default=django.utils.timezone.now, verbose_name='Дата рождения')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')),
                ('img', stdimage.models.StdImageField(null=True, upload_to=apps.users.models.avatar_path, validators=[stdimage.validators.MaxSizeValidator(1028, 768)], verbose_name='Аватар')),
                ('city', models.CharField(choices=[('msk', 'Москва'), ('spb', 'Санкт-петербург'), ('mhk', 'Махачкала'), ('mhk', 'Каспийск'), ('drb', 'Дербент'), ('kzl', 'Кизляр'), ('hsv', 'Хасавюрт')], default='msk', max_length=100, verbose_name='Город')),
                ('experience', models.CharField(max_length=100, verbose_name='Опыт работы')),
                ('education', models.CharField(max_length=100, verbose_name='Образование')),
                ('about', models.TextField(max_length=2000, verbose_name='О себе')),
                ('skills', models.CharField(help_text='Например: Python, Photoshop, CSS, Angular - разделять навыки запятыми', max_length=1000, verbose_name='Навыки')),
                ('edu', models.BooleanField(default=False, verbose_name='Готов обучать')),
                ('edu_list', models.CharField(blank=True, help_text='Например: Python, Photoshop, CSS, Angular', max_length=1000, null=True, verbose_name='Могу обучить')),
                ('github', models.CharField(blank=True, max_length=100)),
                ('bitbacket', models.CharField(blank=True, max_length=100, verbose_name='bitbucket')),
                ('pinterest', models.CharField(blank=True, max_length=100)),
                ('facebook', models.CharField(blank=True, max_length=100)),
                ('instagram', models.CharField(blank=True, max_length=100)),
                ('twitter', models.CharField(blank=True, max_length=100)),
                ('vk', models.CharField(blank=True, max_length=100)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'ItUser',
                'verbose_name_plural': 'ItUsers',
            },
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='Specialty',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='Специальность')),
            ],
            options={
                'verbose_name': 'Specialty',
                'verbose_name_plural': 'Specialties',
            },
        ),
    ]
Exemplo n.º 9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('email',
                 models.EmailField(max_length=255,
                                   unique=True,
                                   verbose_name='email address')),
                ('is_student', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('is_admin', models.BooleanField(default=False)),
                ('is_staff', models.BooleanField(default=False)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     serialize=False,
                     to='users.user')),
                ('name', models.CharField(max_length=100)),
                ('bio', models.TextField(blank=True, default='')),
                ('preferred_name', models.CharField(max_length=100,
                                                    null=True)),
                ('avatar',
                 models.ImageField(
                     max_length=5000,
                     upload_to=apps.users.models.upload_location)),
                ('discord_name', models.CharField(max_length=100, null=True)),
                ('github_username', models.CharField(max_length=100)),
                ('codepen_username', models.CharField(max_length=100,
                                                      null=True)),
                ('current_level',
                 models.IntegerField(choices=[(1, 'Level One'),
                                              (2, 'Level Two')],
                                     default=1)),
                ('phone', models.CharField(max_length=50, null=True)),
                ('timezone', models.CharField(max_length=50, null=True)),
            ],
        ),
    ]