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

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('Test_App', '0012_auto_20160207_2348'),
    ]

    operations = [
        migrations.CreateModel(
            name='UploadCanvas',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('file',
                 models.FileField(
                     upload_to=Test_App.models.user_directory_path)),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Example #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('Test_App', '0011_auto_20160207_2344'),
    ]

    operations = [
        migrations.AlterField(
            model_name='uploadfile',
            name='file',
            field=models.FileField(upload_to=Test_App.models.user_directory_path),
        ),
    ]
Example #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('Test_App', '0006_uploadfile'),
    ]

    operations = [
        migrations.AlterField(
            model_name='uploadfile',
            name='file',
            field=models.FileField(
                upload_to=Test_App.models.generate_filename),
        ),
    ]