Comment (by Thomas Capricelli):
I dont understand fully what's happening, but yes, it fixes it for me.
Congrats !
I tested with django 5.0 and the line in the file was slightly different.
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Yash Kumar Verma):
is someone working on a merge request for this? if not, can I try
submitting this patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:5>
Comment (by Mariusz Felisiak):
Replying to [comment:5 Yash Kumar Verma]:
> is someone working on a merge request for this? if not, can I try
submitting this patch?
Yes you can, please remember that a regression test is required.
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:6>
Comment (by Prakhar Parashari):
Replying to [comment:2 Thomas Capricelli]:
> I created a minimal exemple. All of this is done using django 4.2 (but
i'm pretty sure it does the same with django 5.0):
>
> How to use:
> ./manage.py makemigrations main && ./manage.py migrate # create initial
migrations
> vi main/models.py # comment index_together, uncomment indexes =
> ./manage.py makemigrations main && ./manage.py migrate # crash
Hey, I tried to reproduce this with your minimal example with Django 5.0
and Django 4.2. However, I couldn't reproduce it. Maybe the example file
is missing something that was producing this error for you? I'm not sure
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:7>
* owner: nobody => David Wobrock
* status: new => assigned
* has_patch: 0 => 1
Comment:
Opened PRs for 5.0 https://github.com/django/django/pull/17632 and 4.2
https://github.com/django/django/pull/17633 using Mariusz's fix :)
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:8>
* has_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:9>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17635 PR] against main.
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:10>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:11>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"70456610694d24d07d76c64fd3bc40f664be51ea" 70456610]:
{{{
#!CommitTicketReference repository=""
revision="70456610694d24d07d76c64fd3bc40f664be51ea"
Fixed #35022 -- Fixed RenameIndex() crash on unnamed indexes if exists
unique constraint on the same fields.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35022#comment:12>