Add tags to galleries
This commit is contained in:
parent
d74e6e39f9
commit
7d700bea36
9 changed files with 81 additions and 11 deletions
29
photologue_custom/migrations/0001_initial.py
Normal file
29
photologue_custom/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Generated by Django 2.2.24 on 2021-09-23 08:26
|
||||
|
||||
from django.db import migrations, models
|
||||
import taggit.managers
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('taggit', '0003_taggeditem_add_unique_index'),
|
||||
('photologue', '0011_auto_20190223_2138'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='GalleryExtended',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('gallery', models.OneToOneField(on_delete='cascade', related_name='extended', to='photologue.Gallery')),
|
||||
('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Extra fields',
|
||||
'verbose_name_plural': 'Extra fields',
|
||||
},
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue