예제 #1
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.AddField(
            model_name='message',
            name='sender_name',
            field=models.CharField(default='undefined', max_length=100),
        ),
        migrations.AddField(
            model_name='section',
            name='enroll_key',
            field=models.CharField(blank=True, max_length=20, null=True),
        ),
        migrations.AddField(
            model_name='user',
            name='token',
            field=models.CharField(blank=True, max_length=150, null=True),
        ),
        migrations.AlterField(
            model_name='homework',
            name='grades_file',
            field=models.FileField(blank=True, null=True, upload_to=api.models.upload_homework_grades_to),
        ),
        migrations.AlterField(
            model_name='homework',
            name='solution_file',
            field=models.FileField(blank=True, null=True, upload_to=api.models.upload_homework_solution_to),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0033_auto_20180601_1647'),
    ]

    operations = [
        migrations.AlterField(
            model_name='agency',
            name='logo_url',
            field=models.FileField(blank=True,
                                   default=None,
                                   null=True,
                                   storage=custom_storages.LogoStorage(),
                                   upload_to=api.models.logo_path),
        ),
        migrations.AlterField(
            model_name='agency',
            name='nation_url',
            field=models.FileField(
                blank=True,
                default=None,
                null=True,
                storage=custom_storages.AgencyNationStorage(),
                upload_to=api.models.nation_path),
        ),
    ]
예제 #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0084_region_label'),
    ]

    operations = [
        migrations.AddField(
            model_name='country',
            name='is_deprecated',
            field=models.BooleanField(default=False, help_text='Is this an active, valid country?'),
        ),
        migrations.AddField(
            model_name='district',
            name='is_deprecated',
            field=models.BooleanField(default=False, help_text='Is this an active, valid district?'),
        ),
        migrations.AlterField(
            model_name='appealdocument',
            name='document',
            field=models.FileField(blank=True, null=True, upload_to=api.models.appeal_document_path, verbose_name='document'),
        ),
        migrations.AlterField(
            model_name='country',
            name='logo',
            field=models.FileField(blank=True, null=True, upload_to=api.models.logo_document_path, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['png', 'jpg', 'gif'])], verbose_name='logo'),
        ),
        migrations.AlterField(
            model_name='countrysnippet',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to='countries/%Y/%m/%d/', verbose_name='image'),
        ),
        migrations.AlterField(
            model_name='regionsnippet',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to='regions/%Y/%m/%d/', verbose_name='image'),
        ),
        migrations.AlterField(
            model_name='situationreport',
            name='document',
            field=models.FileField(blank=True, null=True, upload_to=api.models.sitrep_document_path, verbose_name='document'),
        ),
        migrations.AlterField(
            model_name='snippet',
            name='image',
            field=models.ImageField(blank=True, null=True, upload_to=api.models.snippet_image_path, verbose_name='image'),
        ),
    ]
예제 #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0003_auto_20180602_1046'),
    ]

    operations = [
        migrations.CreateModel(
            name='TreatmentFiles',
            fields=[
                ('file_key', models.AutoField(primary_key=True,
                                              serialize=False)),
                ('files',
                 models.FileField(blank=True,
                                  null=True,
                                  upload_to=api.models.get_upload_to)),
                ('created', models.DateField(null=True)),
                ('updated', models.DateTimeField(auto_now=True, null=True)),
                ('treatment',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='api.Treatments')),
            ],
            options={
                'verbose_name_plural': 'TreatmentFiles',
            },
        ),
    ]
예제 #5
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0029_auto_20180430_0157'),
    ]

    operations = [
        migrations.CreateModel(
            name='Events',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=200)),
                ('description',
                 models.CharField(blank=True, default='', max_length=2048)),
                ('location',
                 models.CharField(blank=True, default='', max_length=100)),
                ('feature_image',
                 models.FileField(blank=True,
                                  default=None,
                                  null=True,
                                  storage=custom_storages.EventImageStorage(),
                                  upload_to=api.models.image_path)),
                ('date', models.DateTimeField()),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': 'Event',
                'verbose_name_plural': 'Events',
            },
        ),
    ]
예제 #6
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('api', '0028_objecttype_verified'),
    ]

    operations = [
        migrations.CreateModel(
            name='FileUpload',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('file',
                 models.FileField(upload_to=api.models.PathAndRename('file'))),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('created_by',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='file_uploads',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0008_auto_20190401_1949'),
    ]

    operations = [
        migrations.AlterField(
            model_name='album',
            name='album_art',
            field=models.ImageField(default='uploads/albumaart/default.png',
                                    upload_to=api.models.art_path),
        ),
        migrations.AlterField(
            model_name='customer',
            name='email',
            field=models.EmailField(max_length=254),
        ),
        migrations.AlterField(
            model_name='track',
            name='mp3',
            field=models.FileField(default='uploads/songs/null.mp3',
                                   upload_to=api.models.track_path),
        ),
    ]
예제 #8
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0003_auto_20200506_1517'),
    ]

    operations = [
        migrations.AddField(
            model_name='problemprototype',
            name='description',
            field=models.TextField(blank=True, default='No description yet'),
        ),
        migrations.CreateModel(
            name='UserSolutionFile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('file', models.FileField(upload_to=api.models.rename_file_on_upload)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.ProblemPointItem')),
            ],
            options={
                'verbose_name': "user's solution file",
                'verbose_name_plural': "user's solution files",
            },
        ),
    ]
예제 #9
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0003_auto_20200723_0047'),
    ]

    operations = [
        migrations.CreateModel(
            name='Model',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('type', models.CharField(max_length=100)),
                ('model', models.FileField(upload_to='models/')),
                ('created', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.AddField(
            model_name='actualimagedetails',
            name='created',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='predictedimagedetails',
            name='created',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='image',
            name='image',
            field=models.ImageField(upload_to=api.models.randomize_filename),
        ),
    ]
예제 #10
0
class Migration(migrations.Migration):

    dependencies = [
        ("api", "0003_delete_old"),
    ]

    operations = [
        migrations.CreateModel(
            name="Artist",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("displayname", models.CharField(max_length=500)),
                ("description", models.CharField(max_length=10000)),
                (
                    "avatar",
                    models.FileField(storage=api.models.select_storage,
                                     upload_to="artist_avatars"),
                ),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0024_auto_20180426_1901'),
    ]

    operations = [
        migrations.AlterField(
            model_name='agency',
            name='ceo',
            field=models.CharField(blank=True,
                                   default=None,
                                   max_length=200,
                                   null=True),
        ),
        migrations.AlterField(
            model_name='agency',
            name='logo_url',
            field=models.FileField(blank=True,
                                   default=None,
                                   null=True,
                                   storage=LogoStorage(),
                                   upload_to=api.models.image_path),
        ),
    ]
예제 #12
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='AudioFile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('file',
                 models.FileField(
                     upload_to=api.models.audio_file_upload_path,
                     validators=[api.models.validate_file_extension])),
                ('uploaded_at', models.DateTimeField(auto_now_add=True)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
예제 #13
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='FileUpload',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('file',
                 models.FileField(
                     default=None,
                     upload_to=api.models.patient_report_directory_path)),
                ('remark', models.CharField(default=None, max_length=50)),
                ('description', models.TextField(default=None)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('user',
                 models.ForeignKey(
                     default=None,
                     on_delete=django.db.models.deletion.RESTRICT,
                     related_name='documents',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0028_auto_20180430_0153'),
    ]

    operations = [
        migrations.AddField(
            model_name='agency',
            name='nation_url',
            field=models.FileField(blank=True, default=None, null=True, storage=custom_storages.AgencyNationStorage(), upload_to=api.models.image_path),
        ),
        migrations.AddField(
            model_name='orbiter',
            name='nation_url',
            field=models.FileField(blank=True, default=None, null=True, storage=custom_storages.AgencyNationStorage(), upload_to=api.models.image_path),
        ),
    ]
예제 #15
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0005_auto_20181115_2053'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='media',
            name='content_type',
        ),
        migrations.RemoveField(
            model_name='media',
            name='object_id',
        ),
        migrations.RemoveField(
            model_name='media',
            name='url',
        ),
        migrations.AddField(
            model_name='event',
            name='featured_image',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=api.models.file_upload_path),
        ),
        migrations.AddField(
            model_name='media',
            name='event',
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='medias',
                to='api.Event'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='media',
            name='file',
            field=models.FileField(default='',
                                   upload_to=api.models.file_upload_path),
            preserve_default=False,
        ),
    ]
예제 #16
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("api", "0005_auto_20190722_1622"),
    ]

    operations = [
        migrations.CreateModel(
            name="ConfigFile",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "creation_timestamp",
                    models.DateTimeField(
                        auto_now_add=True, verbose_name="Creation time"
                    ),
                ),
                (
                    "update_timestamp",
                    models.DateTimeField(auto_now=True, verbose_name="Last Updated"),
                ),
                ("file_name", models.CharField(blank=True, max_length=30)),
                (
                    "config_file",
                    models.FileField(
                        default="configs/default.json",
                        upload_to="configs/",
                        validators=[api.models.ConfigFile.validate_file_extension],
                    ),
                ),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="config_files",
                        to=settings.AUTH_USER_MODEL,
                        verbose_name="User",
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
        ),
    ]
예제 #17
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0136_event_visibility'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='keyfigure',
            options={
                'ordering': ('id', ),
                'verbose_name': 'key figure',
                'verbose_name_plural': 'key figures'
            },
        ),
        migrations.AlterField(
            model_name='generaldocument',
            name='document',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=api.models.general_document_path,
                                   verbose_name='document'),
        ),
        migrations.AlterField(
            model_name='generaldocument',
            name='name_ar',
            field=models.CharField(max_length=100,
                                   null=True,
                                   verbose_name='name'),
        ),
        migrations.AlterField(
            model_name='generaldocument',
            name='name_en',
            field=models.CharField(max_length=100,
                                   null=True,
                                   verbose_name='name'),
        ),
        migrations.AlterField(
            model_name='generaldocument',
            name='name_es',
            field=models.CharField(max_length=100,
                                   null=True,
                                   verbose_name='name'),
        ),
        migrations.AlterField(
            model_name='generaldocument',
            name='name_fr',
            field=models.CharField(max_length=100,
                                   null=True,
                                   verbose_name='name'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0033_contribution'),
    ]

    operations = [
        migrations.AlterField(
            model_name='contribution',
            name='file',
            field=models.FileField(blank=True, null=True, upload_to=api.models.PathAndRename('contributions')),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0011_file_file'),
    ]

    operations = [
        migrations.AlterField(
            model_name='file',
            name='file',
            field=models.FileField(upload_to=api.models.upload_folder_path),
        ),
    ]
예제 #20
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Like',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('liked_by',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='likedby',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='PuppyPost',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('picture',
                 models.FileField(upload_to=api.models.user_directory_path)),
                ('text',
                 models.CharField(blank=True, default=True, max_length=1000)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('puppy_owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='puppypost',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='like',
            name='post',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='likes',
                to='api.PuppyPost'),
        ),
    ]
예제 #21
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0002_auto_20210328_1147'),
    ]

    operations = [
        migrations.CreateModel(
            name='Audios',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(blank=True,
                                          max_length=100,
                                          null=True)),
                ('audio',
                 models.FileField(
                     blank=True,
                     null=True,
                     upload_to=api.models.Audios.audio_upload_path)),
                ('file_type',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('file_extension',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('duration',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('atChild',
                 models.ForeignKey(blank=True,
                                   default='',
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='audios',
                                   to='api.antypicalchild')),
                ('session',
                 models.ForeignKey(default='',
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='audio',
                                   to='api.sessions')),
                ('tChild',
                 models.ForeignKey(blank=True,
                                   default='',
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='audios',
                                   to='api.typicalchild')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0026_auto_20180429_2302'),
    ]

    operations = [
        migrations.AddField(
            model_name='agency',
            name='image_url',
            field=models.FileField(
                blank=True,
                default=None,
                null=True,
                storage=custom_storages.AgencyImageStorage(),
                upload_to=api.models.image_path),
        ),
        migrations.AddField(
            model_name='launcherdetail',
            name='image_url',
            field=models.FileField(
                blank=True,
                default=None,
                null=True,
                storage=custom_storages.LauncherImageStorage(),
                upload_to=api.models.image_path),
        ),
        migrations.AddField(
            model_name='orbiter',
            name='image_url',
            field=models.FileField(
                blank=True,
                default=None,
                null=True,
                storage=custom_storages.OrbiterImageStorage(),
                upload_to=api.models.image_path),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0021_offlinemodel'),
    ]

    operations = [
        migrations.AlterField(
            model_name='offlinemodel',
            name='file',
            field=models.FileField(
                upload_to=api.models.PathAndRename('offline_models')),
        ),
    ]
예제 #24
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0010_uploads_file'),
    ]

    operations = [
        migrations.AlterField(
            model_name='uploads',
            name='File',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=api.models.upload_path),
        ),
    ]
예제 #25
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0002_doubtbox_homework_returnedhomework_score_testresult'),
    ]

    operations = [
        migrations.AlterField(
            model_name='homework',
            name='hwfile',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=api.models.user_directory_path),
        ),
    ]
예제 #26
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0004_remove_task_id_not_null'),
    ]

    operations = [
        migrations.AddField(
            model_name='classifier',
            name='notebook_file',
            field=models.FileField(
                null=True,
                upload_to=api.models.Classifier.classifier_notebook_file_path),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0008_auto_20210322_1105'),
    ]

    operations = [
        migrations.AlterField(
            model_name='content',
            name='document',
            field=models.FileField(default=1,
                                   upload_to=api.models.user_directory_path),
            preserve_default=False,
        ),
    ]
예제 #28
0
class Migration(migrations.Migration):

    dependencies = [
        ('api', '0040_auto_20180604_1118'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='category',
            options={'ordering': ('-id', )},
        ),
        migrations.AlterField(
            model_name='image',
            name='link',
            field=models.FileField(upload_to=api.models.category_path),
        ),
    ]
예제 #29
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.AddField(
            model_name='book',
            name='selectedFile',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=api.models.upload_path),
        ),
        migrations.AlterField(
            model_name='book',
            name='cvtOperation',
            field=models.CharField(max_length=128),
        ),
        migrations.AlterField(
            model_name='book',
            name='endTime',
            field=models.CharField(max_length=128),
        ),
        migrations.AlterField(
            model_name='book',
            name='fileType',
            field=models.CharField(max_length=128),
        ),
        migrations.AlterField(
            model_name='book',
            name='sFrequency',
            field=models.CharField(max_length=128),
        ),
        migrations.AlterField(
            model_name='book',
            name='soundType',
            field=models.CharField(max_length=128),
        ),
        migrations.AlterField(
            model_name='book',
            name='startTime',
            field=models.CharField(max_length=128),
        ),
    ]
예제 #30
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Res',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=100, null=True)),
                ('file', models.FileField(upload_to='files/2021-05-04/')),
                ('code', models.CharField(default=api.models.unique_code, max_length=10)),
            ],
        ),
    ]