-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fixed #784 -- Added migrations autodetected by Django 4.0 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed import sorting Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5556944
commit 9d9ca4b
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
taggit/migrations/0004_alter_taggeditem_content_type_alter_taggeditem_tag.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This migration has no effect in practice. It exists to stop | ||
# Django from autodetecting migrations in taggit when users | ||
# update to Django 4.0. | ||
# See https://docs.djangoproject.com/en/stable/releases/4.0/#migrations-autodetector-changes | ||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("contenttypes", "0002_remove_content_type_name"), | ||
("taggit", "0003_taggeditem_add_unique_index"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="taggeditem", | ||
name="content_type", | ||
field=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", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="taggeditem", | ||
name="tag", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="%(app_label)s_%(class)s_items", | ||
to="taggit.tag", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters