wagtail-birdsong/birdsong/migrations/0002_auto_20200603_0206.py

34 lines
1.3 KiB
Python

# Generated by Django 3.0.6 on 2020-06-03 02:06
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('taggit', '0003_taggeditem_add_unique_index'),
('birdsong', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ContactTag',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('content_object', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='tagged_items', to='birdsong.Contact')),
('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='birdsong_contacttag_items', to='taggit.Tag')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='contact',
name='tags',
field=modelcluster.contrib.taggit.ClusterTaggableManager(blank=True, help_text='A comma-separated list of tags.', through='birdsong.ContactTag', to='taggit.Tag', verbose_name='Tags'),
),
]