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

    dependencies = [
        ('collection', '0004_auto_20210118_1055'),
    ]

    operations = [
        migrations.CreateModel(
            name='Upload',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
                ('image',
                 models.ImageField(
                     upload_to=collection.models.get_image_path)),
                ('thing',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='uploads',
                                   to='collection.Thing')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
Ejemplo n.º 2
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('collection', '0025_auto_20170323_0404'),
    ]

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('location', models.CharField(blank=True, max_length=30)),
                ('image',
                 models.ImageField(
                     upload_to=collection.models.get_image_path)),
                ('review',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='collection.Review')),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Ejemplo n.º 3
0
class Migration(migrations.Migration):

    dependencies = [
        ('collection', '0005_auto_20170603_1723'),
    ]

    operations = [
        migrations.CreateModel(
            name='Upload',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(
                     upload_to=collection.models.get_image_path)),
                ('loonatic',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='uploads',
                                   to='collection.Loonatic')),
            ],
        ),
    ]
Ejemplo n.º 4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('shop', '0037_auto_20170717_1531'),
    ]

    operations = [
        migrations.CreateModel(
            name='Collection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
                ('image',
                 models.ImageField(null=True,
                                   upload_to=collection.models.renameC)),
                ('created_at',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now)),
                ('isActive',
                 models.NullBooleanField(choices=[
                     (None, 'I do not know now'),
                     (True, 'Yes I acknowledge this'),
                     (False, 'No, I do not like this')
                 ],
                                         default=True)),
                ('products',
                 models.ManyToManyField(blank=True,
                                        related_name='collecstions_products',
                                        to='shop.Product')),
                ('user',
                 models.ForeignKey(default=1,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Ejemplo n.º 5
0
class Migration(migrations.Migration):

    dependencies = [
        ('collection', '0027_profile_slug'),
    ]

    operations = [
        migrations.AlterField(
            model_name='profile',
            name='image',
            field=models.ImageField(blank=True, upload_to=collection.models.get_image_path),
        ),
        migrations.AlterField(
            model_name='profile',
            name='review',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='collection.Review'),
        ),
        migrations.AlterField(
            model_name='profile',
            name='slug',
            field=models.SlugField(blank=True, unique=True),
        ),
    ]
Ejemplo n.º 6
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Compilation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('picture', models.ImageField(upload_to=collection.models.get_adminpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='GameDLC',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('picture', models.ImageField(upload_to=collection.models.get_adminpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Games',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('picture', models.ImageField(upload_to=collection.models.get_adminpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('compilation', models.ManyToManyField(blank=True, related_name='games_id', to='collection.Compilation')),
            ],
        ),
        migrations.CreateModel(
            name='Plateform',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('picture', models.ImageField(upload_to=collection.models.get_adminpic_path)),
                ('region', models.IntegerField(choices=[(1, 'Europe'), (2, 'Amerique Du Nord'), (3, 'Japon'), (4, 'Amerique Central'), (5, 'Amerique Du Sud'), (6, 'Asie'), (7, 'Russie'), (8, 'Moyen Orient'), (9, 'Afrique')])),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='PlateformAddon',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('picture', models.ImageField(upload_to=collection.models.get_adminpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('plateform', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.Plateform')),
            ],
        ),
        migrations.CreateModel(
            name='SubPlateform',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('picture', models.ImageField(upload_to=collection.models.get_adminpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('plateform', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.Plateform')),
            ],
        ),
        migrations.CreateModel(
            name='UserOwnedCompilation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('compilation_name', models.CharField(max_length=200)),
                ('physical', models.BooleanField()),
                ('picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('box_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('covers_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('manual_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('game_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('condition_precision', models.TextField(blank=True, null=True)),
                ('owning_status', models.IntegerField(choices=[(1, 'Possede'), (2, 'Vendu'), (3, 'Donnee'), (4, 'Pret Dun Ami'), (5, 'Abonement'), (6, 'Autre')])),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('compilation_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='collection.Compilation')),
                ('plateform_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='collection.Plateform')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UserOwnedGame',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('game_name', models.CharField(max_length=200)),
                ('physical', models.BooleanField()),
                ('picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('box_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('covers_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('manual_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('game_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('condition_precision', models.TextField(blank=True, null=True)),
                ('rating', models.IntegerField(blank=True, null=True)),
                ('rating_precision', models.TextField(blank=True, null=True)),
                ('never_played', models.BooleanField()),
                ('completion_status', models.IntegerField(choices=[(1, 'Pas Fini'), (2, 'Fini'), (3, 'Fini Cent Pour Cent'), (4, 'Sans Fin'), (5, 'Abandonne')])),
                ('completion_precision', models.TextField(blank=True, null=True)),
                ('achievements_earned', models.IntegerField(blank=True, null=True)),
                ('achievements_to_be_earned', models.IntegerField(blank=True, null=True)),
                ('owning_status', models.IntegerField(choices=[(1, 'Possede'), (2, 'Vendu'), (3, 'Donnee'), (4, 'Pret Dun Ami'), (5, 'Abonement'), (6, 'Autre')])),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('compilation', models.ManyToManyField(blank=True, related_name='userownedgame_id', to='collection.UserOwnedCompilation')),
                ('game_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='collection.Games')),
                ('plateform_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='collection.Plateform')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UserOwnedSubPlateform',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('box_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('covers_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('manual_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('subplateform_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('condition_precision', models.TextField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('subplateform', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.SubPlateform')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UserOwnedPlateformAddon',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('box_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('covers_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('manual_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('plateformaddon_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('condition_precision', models.TextField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('plateformaddon', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.PlateformAddon')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UserOwnedGameDLC',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('gamedlc_name', models.CharField(max_length=200)),
                ('physical', models.BooleanField()),
                ('picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('box_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('covers_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('manual_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('gamedlc_condition', models.IntegerField(blank=True, choices=[(1, 'Manquant'), (2, 'Mauvais'), (3, 'Moyen'), (4, 'Bon'), (5, 'Tres Bon'), (6, 'Neuf')], null=True)),
                ('condition_precision', models.TextField(blank=True, null=True)),
                ('rating', models.IntegerField(blank=True, null=True)),
                ('rating_precision', models.TextField(blank=True, null=True)),
                ('owning_status', models.IntegerField(choices=[(1, 'Possede'), (2, 'Vendu'), (3, 'Donnee'), (4, 'Pret Dun Ami'), (5, 'Abonement'), (6, 'Autre')])),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('gamedlc_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='collection.GameDLC')),
                ('gameowned_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.UserOwnedGame')),
            ],
        ),
        migrations.CreateModel(
            name='UserData',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('profil_picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='games',
            name='plateform',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.SubPlateform'),
        ),
        migrations.AddField(
            model_name='gamedlc',
            name='game',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.Games'),
        ),
        migrations.AddField(
            model_name='compilation',
            name='plateform',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.SubPlateform'),
        ),
        migrations.CreateModel(
            name='CollectionPicture',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('collection_picture', models.ImageField(blank=True, null=True, upload_to=collection.models.get_userpic_path)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Ejemplo n.º 7
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('collection', '0008_auto_20200310_0405'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='gamedlc',
            options={'ordering': ('name', )},
        ),
        migrations.AlterModelOptions(
            name='userownedcompilation',
            options={'ordering': ('compilation_name', )},
        ),
        migrations.AlterModelOptions(
            name='userownedgame',
            options={'ordering': ('game_name', )},
        ),
        migrations.AddField(
            model_name='userownedgamedlc',
            name='user',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='collectionpicture',
            name='collection_picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
        migrations.AlterField(
            model_name='plateform',
            name='region',
            field=models.IntegerField(
                choices=[(1, 'Europe'), (2, 'Amérique du Nord'), (
                    3, 'Japon'), (4, 'Amérique Central'), (
                        5, 'Amérique du Sud'), (6, 'Asie'), (
                            7, 'Russie'), (8, 'Moyen Orient'), (
                                9, 'Afrique'), (10, 'Monde')]),
        ),
        migrations.AlterField(
            model_name='userdata',
            name='profil_picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
        migrations.AlterField(
            model_name='userownedcompilation',
            name='picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
        migrations.AlterField(
            model_name='userownedgame',
            name='picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
        migrations.AlterField(
            model_name='userownedgamedlc',
            name='picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
        migrations.AlterField(
            model_name='userownedplateformaddon',
            name='picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
        migrations.AlterField(
            model_name='userownedsubplateform',
            name='picture',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=collection.models.get_userpic_path,
                validators=[collection.models.validate_picture]),
        ),
    ]
Ejemplo n.º 8
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=128)),
                ('slug', models.SlugField(blank=True, editable=False)),
            ],
            options={
                'verbose_name_plural': 'Categories',
            },
        ),
        migrations.CreateModel(
            name='Collectible',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(
                     max_length=200,
                     upload_to=collection.models.collectible_upload_handler)),
                ('name', models.CharField(max_length=256)),
                ('description', models.TextField()),
                ('creator', models.CharField(max_length=128)),
                ('artist',
                 models.CharField(blank=True, max_length=128, null=True)),
                ('publisher',
                 models.CharField(blank=True, max_length=128, null=True)),
                ('pubyear', models.DateTimeField(blank=True, null=True)),
                ('copyright', models.DateTimeField(blank=True, null=True)),
                ('identifier', models.IntegerField(blank=True, null=True)),
                ('created', models.DateTimeField(auto_now=True)),
                ('modified', models.DateTimeField(auto_now_add=True)),
                ('slug', models.SlugField(blank=True, editable=False)),
                ('classification',
                 models.ManyToManyField(related_name='collectibles',
                                        to='collection.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Collection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('status',
                 models.CharField(choices=[('PRIV', 'Private'),
                                           ('PUBL', 'Public')],
                                  max_length=4)),
                ('image',
                 models.ImageField(
                     upload_to=collection.models.collection_upload_handler)),
                ('name', models.CharField(max_length=256)),
                ('type', models.CharField(max_length=128)),
                ('created', models.DateTimeField()),
                ('modified', models.DateTimeField(auto_now_add=True)),
                ('slug', models.SlugField(blank=True, editable=False)),
                ('categories',
                 models.ManyToManyField(related_name='collections',
                                        to='collection.Category')),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='collections',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Link',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('url', models.URLField(max_length=500)),
                ('slug', models.SlugField(blank=True, editable=False)),
                ('collectible',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='links',
                                   to='collection.Collectible')),
            ],
        ),
        migrations.AddField(
            model_name='collectible',
            name='collection',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='items',
                to='collection.Collection'),
        ),
    ]