#35749: AlterIndexTogether raising TypeError: 'class Meta' got invalid attribute(s): index_together -------------------------------------+------------------------------------- Reporter: Dishen Wang | Owner: (none) Type: Bug | Status: closed Component: Migrations | Version: 5.1 Severity: Normal | Resolution: duplicate Keywords: AlterIndexTogether, | Triage Stage: index_together | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Comment (by Dishen Wang):
That is correct Andrés, The work around for me was to modify the old migration/squashed files and replace AlterIndexTogether with a pair of operations RemoveIndex then AddIndex. You can then check for migrations and make sure the there are no changes after the modifications. -- Ticket URL: <https://code.djangoproject.com/ticket/35749#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/django-updates/010701932b22cc68-3f40336f-efab-411b-a36b-c33eb61aa26b-000000%40eu-central-1.amazonses.com.