As Mariusz pointed out on the PR, the same technique can be applied to
other expressions, further simplifying generated migrations.
--
Ticket URL: <https://code.djangoproject.com/ticket/33216>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:1>
* owner: nobody => Manaia Junior
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:2>
Comment (by AllenJonathan):
I would like to give this a try if someone can guide me on how to proceed
with this problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:3>
Comment (by Adam Johnson):
I don't think much more guidance can be given particular to this ticket.
Did you see the example PR? Have you read the contributing guidelines and
the first patch tutorial?
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:4>
* owner: Manaia Junior => AllenJonathan
Comment:
I have deconstructed Value() and submitted a pull request
https://github.com/django/django/pull/15161. I'm not sure if I did the
right thing because other expressions' path could be simplified as well
but I haven't figured those out.
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:5>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:6>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"205f67cd5bea242fac6b0380fa26570505d07dcb" 205f67c]:
{{{
#!CommitTicketReference repository=""
revision="205f67cd5bea242fac6b0380fa26570505d07dcb"
Refs #33216 -- Made @deconstructible do not change path for subclasses.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:8>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"28c98d41133802e4ddcf9d1994b93c69a802fc7a" 28c98d41]:
{{{
#!CommitTicketReference repository=""
revision="28c98d41133802e4ddcf9d1994b93c69a802fc7a"
Fixed #33216 -- Simpilified deconstructed paths for some expressions.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33216#comment:10>