Cannot generate a migration if index_together or unique_together is removed from a model
Traceback (most recent call last):
...
File "/home/tim/code/django/django/db/migrations/autodetector.py", line 50, in changes
changes = self._detect_changes(convert_apps)
File "/home/tim/code/django/django/db/migrations/autodetector.py", line 178, in _detect_changes
self.generate_altered_index_together()
File "/home/tim/code/django/django/db/migrations/autodetector.py", line 788, in generate_altered_index_together
index_together=new_model_state.options['index_together'],
KeyError: u'index_together'
Change History
(4)
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
PR