diff options
Diffstat (limited to 'app/taxonomy/migrations/0001_initial.py')
-rw-r--r-- | app/taxonomy/migrations/0001_initial.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/app/taxonomy/migrations/0001_initial.py b/app/taxonomy/migrations/0001_initial.py index bde5e44..58e7cdb 100644 --- a/app/taxonomy/migrations/0001_initial.py +++ b/app/taxonomy/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.1.3 on 2020-11-30 22:45 +# Generated by Django 4.1.3 on 2022-12-02 20:08 from django.db import migrations, models import django.db.models.deletion @@ -16,9 +16,12 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Category', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=250)), - ('pluralized_name', models.CharField(max_length=60, null=True)), + ('pluralized_name', models.CharField(blank=True, max_length=60, null=True)), + ('description', models.CharField(blank=True, max_length=300, null=True)), + ('intro_markdown', models.TextField(blank=True, null=True)), + ('intro_html', models.TextField(blank=True, null=True)), ('slug', models.SlugField(blank=True)), ('color_rgb', models.CharField(blank=True, max_length=20)), ('date_created', models.DateTimeField(auto_now_add=True)), @@ -32,9 +35,9 @@ class Migration(migrations.Migration): migrations.CreateModel( name='LuxTag', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), - ('slug', models.SlugField(max_length=100, unique=True, verbose_name='slug')), + ('slug', models.SlugField(allow_unicode=True, max_length=100, unique=True, verbose_name='slug')), ('color_rgb', models.CharField(blank=True, max_length=20)), ], options={ @@ -45,10 +48,10 @@ class Migration(migrations.Migration): migrations.CreateModel( name='TaggedItems', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('object_id', models.IntegerField(db_index=True, verbose_name='object ID')), - ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='taxonomy_taggeditems_tagged_items', to='contenttypes.contenttype', verbose_name='content type')), - ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='taxonomy_taggeditems_items', to='taxonomy.luxtag')), + ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)s_tagged_items', to='contenttypes.contenttype', verbose_name='content type')), + ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)s_items', to='taxonomy.luxtag')), ], options={ 'abstract': False, |