Skip to content

Commit 04a728c

Browse files
committed
Fixed bytes/str issues in some migrations (models.Index() arguments).
- Legacy-Id: 16410
1 parent 0ef7e98 commit 04a728c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/doc/migrations/0003_auto_20180401_1231.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ class Migration(migrations.Migration):
1515
operations = [
1616
migrations.AddIndex(
1717
model_name='docevent',
18-
index=models.Index(fields=[b'type', b'doc'], name='doc_doceven_type_43e53e_idx'),
18+
index=models.Index(fields=['type', 'doc'], name='doc_doceven_type_43e53e_idx'),
1919
),
2020
]

ietf/doc/migrations/0018_remove_old_document_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Migration(migrations.Migration):
5757
),
5858
migrations.AddIndex(
5959
model_name='docevent',
60-
index=models.Index(fields=[b'type', b'doc2'], name='doc_doceven_type_ac7748_idx'),
60+
index=models.Index(fields=['type', 'doc2'], name='doc_doceven_type_ac7748_idx'),
6161
),
6262
# The following 9 migrations are related to the m2m fields on Document
6363
# Remove the intermediary model field pointing to Document.name

ietf/doc/migrations/0019_rename_field_document2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Migration(migrations.Migration):
6363
),
6464
migrations.AddIndex(
6565
model_name='docevent',
66-
index=models.Index(fields=[b'type', b'doc'], name='doc_doceven_type_43e53e_idx'),
66+
index=models.Index(fields=['type', 'doc'], name='doc_doceven_type_43e53e_idx'),
6767
),
6868
# Add back the m2m field we removed in 0018_...
6969
migrations.AddField(

0 commit comments

Comments
 (0)