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')),
                ('intro', models.CharField(max_length=3000)),
                ('portrait', models.ImageField(upload_to=account.models.Profile.portrait_path)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='ThemeStyle',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('backgroundImage', models.ImageField(default=None, upload_to=account.models.ThemeStyle.bgImage_path)),
                ('typography_style', models.CharField(choices=[('Dark', 'dark'), ('Light', 'light')], default='dark', max_length=20)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='setting', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):
    dependencies = [
        ('account', '0002_auto_20190314_1700'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='user',
            name='profile_banner_url',
        ),
        migrations.RemoveField(
            model_name='user',
            name='profile_icon_url',
        ),
        migrations.AddField(
            model_name='user',
            name='profile_banner',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=account.models.profile_image_upload_to,
                verbose_name='プロフィール背景画像'),
        ),
        migrations.AddField(
            model_name='user',
            name='profile_icon',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=account.models.profile_image_upload_to,
                verbose_name='プロフィール画像'),
        ),
    ]
Exemplo n.º 3
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0014_auto_20220208_1728'),
    ]

    operations = [
        migrations.CreateModel(
            name='Background',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(
                     upload_to=account.models.background_directory_path,
                     verbose_name='background')),
            ],
        ),
        migrations.AddField(
            model_name='user',
            name='background',
            field=models.ImageField(
                blank=True,
                default='',
                null=True,
                upload_to=account.models.background_directory_path,
                verbose_name='background'),
        ),
    ]
class Migration(migrations.Migration):
    dependencies = [
        ('account', '0006_auto_20190404_1431'),
    ]

    operations = [
        migrations.AlterField(
            model_name='user',
            name='profile_banner',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=account.models.profile_image_upload_to,
                verbose_name='プロフィール背景画像'),
        ),
        migrations.AlterField(
            model_name='user',
            name='profile_icon',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=account.models.profile_image_upload_to,
                verbose_name='プロフィール画像'),
        ),
    ]
Exemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='LightSaltUser',
            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')),
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('modifiy_time', models.DateTimeField(auto_now=True)),
                ('member_id', models.CharField(help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True)),
                ('name', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True)),
                ('email', models.EmailField(max_length=255, unique=True)),
                ('member_type_code', models.CharField(max_length=2)),
                ('is_active', models.BooleanField(default=True)),
                ('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')),
                ('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={
                'db_table': 'LSMB001M',
            },
        ),
        migrations.CreateModel(
            name='LightSaltPastor',
            fields=[
                ('create_time', models.DateTimeField(auto_now_add=True)),
                ('modifiy_time', models.DateTimeField(auto_now=True)),
                ('church_no', models.AutoField(primary_key=True, serialize=False)),
                ('pastor_id', models.CharField(help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True)),
                ('church_name', models.CharField(max_length=100)),
                ('graduation_proof', models.ImageField(null=True, upload_to='')),
                ('church_satification', models.ImageField(null=True, upload_to='')),
                ('church_type_code', models.CharField(max_length=10)),
                ('church_post', models.CharField(max_length=10)),
                ('church_address', models.CharField(max_length=300)),
                ('authentication_yn', models.BooleanField(default=False)),
            ],
            options={
                'db_table': 'LSMB002M',
            },
            managers=[
                ('objects', account.models.LightSaltPastorManager()),
            ],
        ),
    ]
class Migration(migrations.Migration):
    dependencies = [
        ('account', '0005_auto_20190404_0103'),
    ]

    operations = [
        migrations.AlterField(
            model_name='user',
            name='description',
            field=models.TextField(blank=True,
                                   default='',
                                   max_length=500,
                                   null=True,
                                   verbose_name='プロフィール文'),
        ),
        migrations.AlterField(
            model_name='user',
            name='name',
            field=models.CharField(max_length=50,
                                   null=True,
                                   verbose_name='表示名'),
        ),
        migrations.AlterField(
            model_name='user',
            name='profile_banner',
            field=models.ImageField(
                blank=True,
                default='images/default-banner.png',
                null=True,
                upload_to=account.models.profile_image_upload_to,
                verbose_name='プロフィール背景画像'),
        ),
        migrations.AlterField(
            model_name='user',
            name='profile_icon',
            field=models.ImageField(
                blank=True,
                default='images/default-icon.png',
                null=True,
                upload_to=account.models.profile_image_upload_to,
                verbose_name='プロフィール画像'),
        ),
        migrations.AlterField(
            model_name='user',
            name='username',
            field=models.CharField(
                max_length=20,
                unique=True,
                validators=[account.validators.UsernameValidator()],
                verbose_name='ユーザー名'),
        ),
    ]
Exemplo n.º 7
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0002_auto_20180702_0742'),
    ]

    operations = [
        migrations.AddField(
            model_name='account',
            name='result',
            field=models.CharField(default='late', max_length=200),
        ),
        migrations.AddField(
            model_name='account',
            name='url',
            field=models.URLField(
                default=
                'https://baike.baidu.com/pic/\u624b\u52a8\u6ed1\u7a3d/22206680/0/72f082025aafa40f05016cb4a764034f79f01997'
            ),
        ),
        migrations.AlterField(
            model_name='account',
            name='icon',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=account.models.upload_path),
        ),
    ]
Exemplo n.º 8
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')),
                ('profile_picture', models.ImageField(height_field=300, upload_to=account.models.get_profile_pic_path, verbose_name='Profile Picture', width_field=300)),
                ('education_background', models.CharField(choices=[('PostGraduate', 'PostGraduate'), ('UnderGraduate', 'UnderGraduate'), ('HighSchool', 'HighSchool')], max_length=30, verbose_name='Educational Background')),
                ('phone_number_1', models.CharField(max_length=13, verbose_name='First Phone Number')),
                ('phone_number_2', models.CharField(blank=True, max_length=13, null=True, verbose_name='Second Phone Number')),
                ('github_url', models.URLField(blank=True, max_length=150, null=True, verbose_name='Github homepage URL.')),
                ('personal_url', models.URLField(blank=True, max_length=150, null=True, verbose_name='Personal website URL.')),
                ('facebook_account', models.URLField(blank=True, max_length=255, null=True, verbose_name='Facebook profile page.')),
                ('twitter_account', models.URLField(blank=True, max_length=255, null=True, verbose_name='Twitter profile page.')),
                ('linkedin_account', models.URLField(blank=True, max_length=255, null=True, verbose_name='LinkedIn profile page.')),
                ('short_bio', models.CharField(blank=True, max_length=60, null=True, verbose_name='Describe yourself')),
                ('bio', models.CharField(blank=True, max_length=400, null=True, verbose_name='Short bio')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='related_user')),
            ],
            managers=[
                ('highschool', django.db.models.manager.Manager()),
            ],
        ),
    ]
Exemplo n.º 9
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('account', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='profile',
            name='followers',
            field=models.ManyToManyField(blank=True,
                                         related_name='followed_to',
                                         to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='profile',
            name='image',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=account.models.path_and_rename,
                                    verbose_name='Аватар'),
        ),
        migrations.AlterField(
            model_name='profile',
            name='user',
            field=models.OneToOneField(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='profile',
                to=settings.AUTH_USER_MODEL),
        ),
    ]
Exemplo n.º 10
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0012_reporter_image_crop'),
    ]

    operations = [
        migrations.AddField(
            model_name='reporter',
            name='added',
            field=models.DateField(auto_now_add=True,
                                   default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reporter',
            name='updated',
            field=models.DateField(auto_now=True),
        ),
        migrations.AlterField(
            model_name='reporter',
            name='image_crop',
            field=models.ImageField(
                blank=True,
                upload_to=account.models.image_upload_to_crop,
                verbose_name='Фото журналиста обрезанное'),
        ),
    ]
Exemplo n.º 11
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0007_auto_20180812_2113'),
    ]

    operations = [
        migrations.CreateModel(
            name='Social',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('twitter', models.CharField(blank=True, max_length=70, null=True, verbose_name='Twitter Profile')),
                ('facebook', models.CharField(blank=True, max_length=70, null=True, verbose_name='Facebook Profile')),
                ('instagram', models.CharField(blank=True, max_length=70, null=True, verbose_name='Instagram Profile')),
                ('google', models.CharField(blank=True, max_length=70, null=True, verbose_name='Google Plus Profile')),
            ],
            options={
                'verbose_name': 'Social',
                'verbose_name_plural': 'Social Media Links',
            },
        ),
        migrations.AlterField(
            model_name='profile',
            name='avatar',
            field=models.ImageField(blank=True, null=True, storage=account.models.OverwriteStorage(), upload_to=account.models.user_directory_path, verbose_name='Profile Picture'),
        ),
        migrations.AddField(
            model_name='social',
            name='profile',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='account.Profile', verbose_name='Person'),
        ),
    ]
Exemplo n.º 12
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')),
                ('gender',
                 models.CharField(blank=True,
                                  choices=[('W', 'Wanita'), ('P', 'Pria')],
                                  max_length=1)),
                ('birth_date', models.DateField(blank=True, null=True)),
                ('photo_profile',
                 models.ImageField(upload_to=account.models.user_dir_path)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemplo n.º 13
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0003_auto_20200211_2206'),
    ]

    operations = [
        migrations.AddField(
            model_name='customuser',
            name='address',
            field=models.CharField(blank=True, max_length=64, verbose_name='Address'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='avatar',
            field=models.ImageField(default='../static/images/avatar/women.jpg', upload_to='users/', verbose_name='Photo'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='birth_to_day',
            field=models.DateField(blank=True, null=True, verbose_name='User BirthDay'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='phone',
            field=models.CharField(default=1, max_length=12, unique=True, validators=[account.models.validate_phone], verbose_name='Phone Number'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='customuser',
            name='position',
            field=models.IntegerField(choices=[(1, 'administrator'), (2, 'master'), (3, 'manager')], default=2, verbose_name='Position in company'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0019_auto_20200905_1619'),
    ]

    operations = [
        migrations.AlterField(
            model_name='profile',
            name='document10',
            field=models.FileField(
                blank=True,
                null=True,
                upload_to='documents/user_documents/10marksheets',
                validators=[account.models.file_size]),
        ),
        migrations.AlterField(
            model_name='profile',
            name='document12',
            field=models.FileField(
                blank=True,
                null=True,
                upload_to='documents/user_documents/12marksheets',
                validators=[account.models.file_size]),
        ),
        migrations.AlterField(
            model_name='profile',
            name='document_last_sem',
            field=models.FileField(
                blank=True,
                null=True,
                upload_to='documents/user_documents/last_marksheets',
                validators=[account.models.file_size]),
        ),
        migrations.AlterField(
            model_name='profile',
            name='father_id',
            field=models.FileField(
                blank=True,
                null=True,
                upload_to='documents/user_documents/father_id',
                validators=[account.models.file_size]),
        ),
        migrations.AlterField(
            model_name='profile',
            name='image',
            field=models.ImageField(default='pics/profile_pics/default.png',
                                    upload_to='pics/profile_pics',
                                    validators=[account.models.file_size]),
        ),
        migrations.AlterField(
            model_name='profile',
            name='student_id',
            field=models.FileField(
                blank=True,
                null=True,
                upload_to='documents/user_documents/student_id',
                validators=[account.models.file_size]),
        ),
    ]
Exemplo n.º 15
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')),
                ('first_name', models.CharField(blank=True, max_length=255)),
                ('country', models.CharField(blank=True, max_length=30)),
                ('city', models.CharField(blank=True, max_length=30)),
                ('bio', models.TextField(blank=True, max_length=255)),
                ('image',
                 models.ImageField(default='static/media/default.png',
                                   upload_to=account.models.get_image_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now_add=True)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemplo n.º 16
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')),
                ('date_of_birth', models.DateField(blank=True, null=True)),
                ('photo',
                 models.ImageField(default='160Hf.png',
                                   upload_to=account.models.upload_location)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemplo n.º 17
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('name', models.CharField(max_length=150)),
                ('phone', models.CharField(max_length=50)),
                ('date_of_birth', models.DateField(blank=True, null=True)),
                ('picture', models.ImageField(blank=True, null=True, upload_to='')),
                ('is_staff', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now)),
                ('last_login', models.DateTimeField(null=True)),
                ('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={
                'abstract': False,
            },
            managers=[
                ('objects', account.models.AccountManager()),
            ],
        ),
    ]
Exemplo n.º 18
0
class Migration(migrations.Migration):

    initial = True

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

    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')),
                ('email', models.EmailField(blank=True, db_index=True, max_length=254, unique=True, verbose_name='email')),
                ('full_name', models.CharField(max_length=150, unique=True, verbose_name='full name')),
                ('avatar', models.ImageField(blank=True, upload_to='user/avatar', verbose_name='avatar')),
                ('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=False, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('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',
            },
            managers=[
                ('objects', account.models.UserManager()),
            ],
        ),
    ]
Exemplo n.º 19
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('post', '0001_initial'),
        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')),
                ('first_name', models.CharField(blank=True, max_length=50, null=True)),
                ('last_name', models.CharField(blank=True, max_length=50, null=True)),
                ('location', models.CharField(blank=True, max_length=50, null=True)),
                ('url', models.CharField(blank=True, max_length=80, null=True)),
                ('profile_info', models.TextField(blank=True, max_length=150, null=True)),
                ('created', models.DateField(auto_now_add=True)),
                ('picture', models.ImageField(blank=True, null=True, upload_to=account.models.user_directory_path, verbose_name='Picture')),
                ('favorites', models.ManyToManyField(to='post.Post')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemplo n.º 20
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('email', models.EmailField(max_length=60, unique=True, verbose_name='email')),
                ('username', models.CharField(max_length=30, unique=True)),
                ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date_joined')),
                ('last_login', models.DateTimeField(auto_now=True, verbose_name='last login')),
                ('is_admin', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_superuser', models.BooleanField(default=False)),
                ('profile_image', models.ImageField(blank=True, max_length=255, null=True, upload_to=account.models.get_profile_image_filepath)),
                ('hide_email', models.BooleanField(default=True)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Exemplo n.º 21
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('email', models.EmailField(max_length=60, unique=True, verbose_name='email')),
                ('last_name', models.CharField(default=False, max_length=60)),
                ('first_name', models.CharField(default=False, max_length=60)),
                ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')),
                ('is_admin', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('is_superuser', models.BooleanField(default=False)),
                ('is_staff', models.BooleanField(default=False)),
                ('photo', models.ImageField(default='ph/st/user.png', upload_to=account.models.content_file_name)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Exemplo n.º 22
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')),
                ('resume',
                 models.FileField(upload_to='resumes/',
                                  verbose_name='Upload Resumes')),
                ('image',
                 models.ImageField(blank=True,
                                   upload_to=account.models.upload_location,
                                   verbose_name='image')),
                ('phonenumber', models.CharField(blank=True, max_length=50)),
                ('address', models.CharField(blank=True, max_length=50)),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemplo n.º 23
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0005_auto_20191124_1505'),
    ]

    operations = [
        migrations.AddField(
            model_name='account',
            name='fllwd_users',
            field=models.ManyToManyField(related_name='followed_users',
                                         to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='account',
            name='fllwrs',
            field=models.ManyToManyField(related_name='_followers',
                                         to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='account',
            name='banner_picture',
            field=models.ImageField(
                blank=True,
                default='default_images/default_banner.png',
                upload_to=account.models.upload_banner_location),
        ),
    ]
Exemplo n.º 24
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='user',
            name='date_of_birth',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='user',
            name='gender',
            field=models.CharField(blank=True,
                                   choices=[('Male', 'Male'),
                                            ('Female', 'Female')],
                                   max_length=255,
                                   null=True),
        ),
        migrations.AddField(
            model_name='user',
            name='profile_image',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=account.models.user_profile_image),
        ),
    ]
Exemplo n.º 25
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('account', '0001_initial'),
        ('post', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Photo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('id_photo', models.IntegerField(null=True, unique=True)),
                ('photo', models.ImageField(blank=True, default='defult-photo.png', null=True, upload_to=account.models.user_directory_path)),
                ('like_put', models.BooleanField(default=False, null=True)),
                ('account', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='images', to='account.Account')),
                ('post', models.ManyToManyField(blank=True, related_name='images', to='post.Post')),
            ],
            options={
                'ordering': ['-id'],
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0004_auto_20191102_1818'),
    ]

    operations = [
        migrations.AlterField(
            model_name='account',
            name='banner_picture',
            field=models.ImageField(blank=True, default='default_images/default_banner.jpg', upload_to=account.models.upload_banner_location),
        ),
        migrations.AlterField(
            model_name='account',
            name='profile_picture',
            field=models.ImageField(blank=True, default='default_images/default_profile.png', upload_to=account.models.upload_profile_location),
        ),
    ]
Exemplo n.º 27
0
class Migration(migrations.Migration):

    dependencies = [
        ('account', '0010_auto_20200606_0754'),
    ]

    operations = [
        migrations.AlterField(
            model_name='userprofile',
            name='background_image',
            field=models.ImageField(default='default_background.jpg', null=True, upload_to=account.models.introduction_image_save_path),
        ),
        migrations.AlterField(
            model_name='userprofile',
            name='profile_image',
            field=models.ImageField(default='default_profile.jpg', null=True, upload_to=account.models.profile_image_save_path),
        ),
    ]
Exemplo n.º 28
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='MyUser',
            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=150, 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')),
                ('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()),
            ],
        ),
        migrations.CreateModel(
            name='Rol',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_regular', models.BooleanField(default=True)),
                ('is_agent', models.BooleanField(default=False)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(blank=True, default=account.models.default_image_url, upload_to=account.models.account_image_url)),
                ('description', models.CharField(blank=True, default='Este es mi primer empleo en una compañía tan genial como Helpdesk.', max_length=90)),
                ('facebook', models.URLField(blank=True)),
                ('instagram', models.URLField(blank=True)),
                ('twitter', models.URLField(blank=True)),
                ('owner', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='account')),
            ],
        ),
    ]
Exemplo n.º 29
0
class Migration(migrations.Migration):

    initial = True

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

    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(max_length=64, unique=True, verbose_name='\u8d26\u6237')),
                ('nickname', models.CharField(blank=True, max_length=64, null=True, verbose_name='\u6635\u79f0')),
                ('name', models.CharField(blank=True, max_length=64, null=True, verbose_name='\u59d3\u540d')),
                ('gender', models.CharField(choices=[(b'1', '\u7537'), (b'2', '\u5973')], default=b'0', max_length=1, verbose_name='\u6027\u522b')),
                ('birth', models.DateField(blank=True, null=True, verbose_name='\u751f\u65e5')),
                ('avatar', models.ImageField(blank=True, null=True, upload_to=account.models.scramble_avatar_filename, verbose_name='\u5934\u50cf')),
                ('brief', models.CharField(blank=True, max_length=256, null=True, verbose_name='\u7b80\u4ecb')),
                ('email', models.EmailField(blank=True, max_length=254)),
                ('type', models.CharField(choices=[(b'1', '\u5b66\u751f'), (b'2', '\u8001\u5e08')], default=b'0', max_length=1, verbose_name='\u7528\u6237\u7c7b\u578b')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('del_flag', models.IntegerField(choices=[(1, '\u662f'), (0, '\u5426')], default=0, verbose_name='\u662f\u5426\u5220\u9664')),
                ('is_staff', models.BooleanField(default=True, verbose_name='\u662f\u5426\u662f\u5458\u5de5')),
                ('is_active', models.BooleanField(default=True, verbose_name='\u662f\u5426\u6fc0\u6d3b')),
                ('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={
                'db_table': 'auth_user',
                'verbose_name': '\u7528\u6237\u8868',
                'verbose_name_plural': '\u7528\u6237\u8868',
            },
        ),
        migrations.CreateModel(
            name='EmailVerifyRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=20, verbose_name='\u9a8c\u8bc1\u7801')),
                ('email', models.EmailField(max_length=254, verbose_name='\u90ae\u7bb1')),
                ('type', models.CharField(choices=[(1, '\u6ce8\u518c'), (2, '\u627e\u56de\u5bc6\u7801')], max_length=1, verbose_name='\u9a8c\u8bc1\u7801\u7c7b\u578b')),
                ('send_time', models.DateTimeField(auto_now=True, verbose_name='\u53d1\u9001\u65f6\u95f4')),
            ],
            options={
                'db_table': 't_email_verify',
                'verbose_name': '\u90ae\u7bb1\u9a8c\u8bc1\u7801',
                'verbose_name_plural': '\u90ae\u7bb1\u9a8c\u8bc1\u7801',
            },
        ),
    ]
Exemplo n.º 30
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='BaseAccount',
            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')),
                ('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')),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('check_staff', models.BooleanField(default=False)),
                ('staff_id', models.CharField(blank=True, max_length=15, null=True, unique=True)),
                ('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()),
            ],
        ),
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dp', models.ImageField(blank=True, null=True, upload_to=account.models.get_uplaod_file_name, verbose_name='Display picture')),
                ('first_name', models.CharField(blank=True, max_length=25, null=True)),
                ('last_name', models.CharField(blank=True, max_length=25, null=True)),
                ('balance', models.DecimalField(decimal_places=2, default=0.0, max_digits=8)),
                ('delivery_address', models.CharField(blank=True, max_length=1055, null=True)),
                ('contact_no', models.CharField(blank=True, max_length=11, null=True)),
                ('user_created', models.DateTimeField(auto_now_add=True)),
                ('last_updated', models.DateTimeField(auto_now=True)),
                ('base', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]