-
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #869 from jazzband/django-upgrade
Django 4.2 preparation
- Loading branch information
Showing
11 changed files
with
130 additions
and
60 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -44,6 +44,7 @@ exclude = tests* | |
[flake8] | ||
# E501: line too long | ||
ignore = E501 | ||
exclude = .venv,.git,.tox | ||
|
||
[isort] | ||
profile = black |
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
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
from django.db import migrations | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [("taggit", "0001_initial")] | ||
|
||
operations = [ | ||
migrations.AlterIndexTogether( | ||
name="taggeditem", index_together={("content_type", "object_id")} | ||
# this migration was modified from previously being | ||
# a ModifyIndexTogether operation. | ||
# | ||
# If you are a long-enough user of this library, the name | ||
# of the index does not match what is written here. Please | ||
# query the DB itself to find out what the name originally was. | ||
migrations.AddIndex( | ||
"taggeditem", | ||
models.Index( | ||
fields=("content_type", "object_id"), | ||
# this is not the name of the index in previous version, | ||
# but this is necessary to deal with index_together issues. | ||
name="taggit_tagg_content_8fc721_idx", | ||
), | ||
) | ||
] |
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
16 changes: 16 additions & 0 deletions
16
...igrations/0006_rename_taggeditem_content_type_object_id_taggit_tagg_content_8fc721_idx.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,16 @@ | ||
# Generated by Django 4.2.5 on 2023-09-19 23:16 | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("taggit", "0005_auto_20220424_2025"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameIndex( | ||
model_name="taggeditem", | ||
new_name="taggit_tagg_content_8fc721_idx", | ||
old_fields=("content_type", "object_id"), | ||
), | ||
] |
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
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 |
---|---|---|
|
@@ -43,3 +43,5 @@ | |
STATIC_URL = "/static/" | ||
|
||
DEFAULT_AUTO_FIELD = "django.db.models.AutoField" | ||
|
||
USE_TZ = True |
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
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