Exemple #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0003_rc_info_auto_prompt'),
    ]

    operations = [
        migrations.RenameField(
            model_name='rc_info',
            old_name='the_file',
            new_name='main_file',
        ),
        migrations.AddField(
            model_name='rc_info',
            name='body_file',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=app.models.upload_body_file),
        ),
        migrations.AddField(
            model_name='rc_info',
            name='footer_file',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=app.models.upload_footer_file),
        ),
        migrations.AddField(
            model_name='rc_info',
            name='head_file',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=app.models.upload_head_file),
        ),
    ]
Exemple #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Topic',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('topic', models.CharField(max_length=100, unique=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('slug', models.SlugField(blank=True, max_length=100, null=True, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=650)),
                ('sound', models.FileField(blank=True, null=True, upload_to=app.models.content_file_name)),
                ('topic', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='question', to='app.topic')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0004_auto_20180815_1632'),
    ]

    operations = [
        migrations.AddField(
            model_name='audio',
            name='format',
            field=models.CharField(choices=[('mp3', 'mp3'), ('wav', 'wav'), ('flac', 'flac'), ('ogg', 'ogg')], default='mp3', max_length=16, verbose_name='Formato'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='audio',
            name='audio_file',
            field=models.FileField(null=True, upload_to=app.models.fileName),
        ),
        migrations.AlterField(
            model_name='audio',
            name='created_by',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='audios', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='audio',
            name='text',
            field=models.CharField(max_length=512, verbose_name='Texto'),
        ),
    ]
Exemple #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0003_auto_20180730_1205'),
    ]

    operations = [
        migrations.AlterField(
            model_name='point',
            name='audioFile',
            field=models.FileField(blank=True,
                                   null=True,
                                   unique=True,
                                   upload_to=app.models.audioFileLocation),
        ),
        migrations.AlterField(
            model_name='point',
            name='description',
            field=models.CharField(max_length=1000, null=True, unique=True),
        ),
        migrations.AlterField(
            model_name='point',
            name='name',
            field=models.CharField(max_length=255, null=True, unique=True),
        ),
    ]
Exemple #5
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')),
                ('Email', models.CharField(max_length=40, unique=True)),
                ('genero',
                 models.CharField(default='Não Identificado', max_length=40)),
                ('Avatar', models.FileField(upload_to=app.models.fnc)),
                ('N_seguidores', models.IntegerField(default=0)),
                ('N_seguindo', models.IntegerField(default=0)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='profile',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0003_fichas'),
    ]

    operations = [
        migrations.AddField(
            model_name='estagio',
            name='fichas',
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='Estagio',
                to='app.Fichas',
                verbose_name=app.models.Fichas),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='fichas',
            name='modelo8',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=None,
                                   verbose_name=b'modelo de certificados'),
        ),
    ]
Exemple #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Video',
            fields=[
                ('key',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('file_1080p', models.CharField(max_length=255, null=True)),
                ('file_720p', models.CharField(max_length=255, null=True)),
                ('file_watermark', models.CharField(max_length=255,
                                                    null=True)),
                ('file',
                 models.FileField(
                     upload_to=app.models.Video.upload_video_dir)),
            ],
        ),
    ]
Exemple #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('custom_dir_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('file',
                 models.FileField(blank=True,
                                  null=True,
                                  upload_to=app.models.user_directory_path)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='FileUpload',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('file',
                 models.FileField(null=True,
                                  upload_to='files/',
                                  validators=[app.models.validate_file],
                                  verbose_name='')),
                ('user',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemple #10
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('question',
                 models.CharField(blank=True, max_length=200, null=True)),
                ('answer',
                 models.CharField(blank=True, max_length=200, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('photo',
                 models.FileField(blank=True,
                                  null=True,
                                  upload_to=app.models.path)),
                ('Name', models.CharField(blank=True,
                                          max_length=200,
                                          null=True)),
                ('bio', models.CharField(blank=True, max_length=200,
                                         null=True)),
                ('gender',
                 models.CharField(blank=True,
                                  choices=[('Male', 'Male'),
                                           ('Female', 'Female')],
                                  max_length=6,
                                  null=True)),
                ('mobileNo',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='stud',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Exemple #11
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Info',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=128,
                                          verbose_name=b'Name')),
                ('email',
                 models.CharField(blank=True,
                                  max_length=128,
                                  verbose_name=b'Email')),
                ('mobno',
                 models.CharField(blank=True,
                                  max_length=32,
                                  verbose_name=b'Mob No')),
                ('college',
                 models.CharField(blank=True,
                                  max_length=128,
                                  verbose_name=b'College Name')),
                ('ans1',
                 models.FileField(upload_to=app.models.content_album_name)),
                ('ans2',
                 models.FileField(upload_to=app.models.content_album_name)),
                ('ans3',
                 models.FileField(upload_to=app.models.content_album_name)),
                ('ans4',
                 models.FileField(upload_to=app.models.content_album_name)),
            ],
        ),
    ]
Exemple #12
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0002_auto_20180407_2048'),
    ]

    operations = [
        migrations.AlterField(
            model_name='uploads',
            name='file',
            field=models.FileField(upload_to=app.models.file_path),
        ),
    ]
Exemple #13
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0006_auto_20200118_1202'),
    ]

    operations = [
        migrations.AlterField(
            model_name='project',
            name='project',
            field=models.FileField(upload_to=app.models.get_upload_path),
        ),
    ]
Exemple #14
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0004_auto_20201008_1851'),
    ]

    operations = [
        migrations.AlterField(
            model_name='fileupload',
            name='file',
            field=models.FileField(null=True, upload_to='files/', validators=[app.models.validate_file], verbose_name=''),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0010_auto_20200822_2123'),
    ]

    operations = [
        migrations.AlterField(
            model_name='profilepictures',
            name='picture',
            field=models.FileField(blank=True, null=True, upload_to=app.models.profile_pics_directory),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0004_remove_check_type'),
    ]

    operations = [
        migrations.AlterField(
            model_name='check',
            name='pdf_file',
            field=models.FileField(blank=True, null=True, upload_to=app.models.upload_to),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0011_auto_20180519_1702'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='paramsinputfile',
            name='value',
        ),
        migrations.AddField(
            model_name='paramsinputfile',
            name='file_input',
            field=models.FileField(blank=True, upload_to=app.models.file_task_input_upload_location, verbose_name='File Input'),
        ),
        migrations.AddField(
            model_name='paramsinputfile',
            name='file_output',
            field=models.FileField(blank=True, upload_to=app.models.file_task_output_upload_location, verbose_name='File Output'),
        ),
    ]
Exemple #18
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0005_auto_20200627_1815'),
    ]

    operations = [
        migrations.AlterField(
            model_name='program',
            name='file',
            field=models.FileField(upload_to=app.models.get_upload_path),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0004_auto_20180730_1211'),
    ]

    operations = [
        migrations.AlterField(
            model_name='point',
            name='audioFile',
            field=models.FileField(null=True, upload_to=app.models.audioFileLocation),
        ),
    ]
Exemple #20
0
class Migration(migrations.Migration):

    dependencies = [("app", "0005_auto_20190625_2207")]

    operations = [
        migrations.AlterField(
            model_name="assignment",
            name="file",
            field=models.FileField(
                help_text="Please upload a zip file!",
                upload_to=app.models.get_file_path,
            ),
        )
    ]
Exemple #21
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0030_auto_20180520_1918'),
    ]

    operations = [
        migrations.AlterField(
            model_name='photo',
            name='image',
            field=models.FileField(default='pets/pet_default_image.jpg',
                                   upload_to=app.models.pet_directory_path),
        ),
    ]
Exemple #22
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0013_routine_video_from_backup'),
    ]

    operations = [
        migrations.AlterField(
            model_name='backupvideo',
            name='video_file',
            field=models.FileField(null=True,
                                   upload_to=app.models.backup_video_path),
        ),
    ]
Exemple #23
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Attachment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('filename', models.CharField(max_length=100)),
                ('file', models.FileField(upload_to=app.models.upload_path)),
                ('created_at',
                 models.DateTimeField(default=django.utils.timezone.now)),
            ],
        ),
        migrations.CreateModel(
            name='Todo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('description', models.TextField()),
                ('created_at',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='todos',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='attachment',
            name='todo',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='attachments',
                to='app.Todo'),
        ),
    ]
Exemple #24
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0006_produit_detail'),
    ]

    operations = [
        migrations.CreateModel(
            name='Picture',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fichier', models.FileField(blank=True, default=None, null=True, upload_to=app.models.Picture.generate_filename)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0002_auto_20180526_0110'),
    ]

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

    dependencies = [
        ('app', '0024_auto_20170221_0851'),
    ]

    operations = [
        migrations.CreateModel(
            name='File',
            fields=[
                ('created_date', models.DateTimeField(default=datetime.datetime.now)),
                ('patient', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='app.Patient')),
                ('file', models.FileField(upload_to=app.models.user_directory_path)),
            ],
        ),
    ]
Exemple #27
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.AlterField(
            model_name='fileupload',
            name='file',
            field=models.FileField(null=True,
                                   upload_to=app.models.user_directory_path,
                                   validators=[app.models.validate_file],
                                   verbose_name=''),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0007_commoninfo_intro_image'),
    ]

    operations = [
        migrations.AlterField(
            model_name='commoninfo',
            name='intro_image',
            field=models.FileField(blank=True,
                                   null=True,
                                   upload_to=app.models.intro_upload_path,
                                   verbose_name='첫화면배경이미지'),
        ),
    ]
Exemple #29
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0026_auto_20170222_1715'),
    ]

    operations = [
        migrations.CreateModel(
            name='File',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_date', models.DateTimeField(default=datetime.datetime.now)),
                ('file', models.FileField(upload_to=app.models.user_directory_path)),
                ('patient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Patient')),
            ],
        ),
    ]
Exemple #30
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('title', models.CharField(max_length=250)),
                ('file', models.FileField(blank=True, null=True, upload_to=app.models.upload_path)),
            ],
        ),
    ]