diff options
author | 2022-08-14 04:44:57 +0200 | |
---|---|---|
committer | 2022-08-14 05:36:12 +0200 | |
commit | b4911d03faf8eecf5c4cced6f8036b0b2ef01d58 (patch) | |
tree | cc32c183b6894829dea32506eaf77e25ffa7e73f /pydis_site/apps/content/migrations | |
parent | Improve Tag Cropping (diff) |
Move Tag URL To Property And Add Group
The URLs can be simply constructed using the other tag properties, so
they were removed from the database in favor of a property.
A group field was also added to support tags within groups.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/content/migrations')
-rw-r--r-- | pydis_site/apps/content/migrations/0002_remove_tag_url_tag_group.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pydis_site/apps/content/migrations/0002_remove_tag_url_tag_group.py b/pydis_site/apps/content/migrations/0002_remove_tag_url_tag_group.py new file mode 100644 index 00000000..e59077f0 --- /dev/null +++ b/pydis_site/apps/content/migrations/0002_remove_tag_url_tag_group.py @@ -0,0 +1,22 @@ +# Generated by Django 4.0.6 on 2022-08-13 23:48 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('content', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='tag', + name='url', + ), + migrations.AddField( + model_name='tag', + name='group', + field=models.CharField(help_text='The group the tag belongs to.', max_length=50, null=True), + ), + ] |