12237 change index_together to indexes

This commit is contained in:
Arthur 2023-06-14 16:27:29 -07:00
parent 0de4d0a2e1
commit c0d389d523
2 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.2 on 2023-06-14 23:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('extras', '0092_delete_jobresult'),
]
operations = [
migrations.RenameIndex(
model_name='taggeditem',
new_name='extras_tagg_content_717743_idx',
old_fields=('content_type', 'object_id'),
),
]

View File

@ -61,6 +61,4 @@ class TaggedItem(GenericTaggedItemBase):
)
class Meta:
index_together = (
("content_type", "object_id")
)
indexes = [models.Index(fields=["content_type", "object_id"])]