fix: unrepair a migration

This commit is contained in:
Robert Sparks 2023-08-22 08:50:22 -05:00
parent 9649004159
commit 8ad4ab0a8d
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318

View file

@ -8,7 +8,7 @@ def forward(apps, schema_editor):
Document = apps.get_model("doc", "Document")
RelatedDocument = apps.get_model("doc", "RelatedDocument")
for rfc_alias in DocAlias.objects.filter(name__startswith="rfc").exclude(
type_id="rfc"
docs__type_id="rfc"
):
# Move these over to the RFC
RelatedDocument.objects.filter(