* cc: michelts@… (added)
* ui_ux: => 0
* easy: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:29>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: Batiste Bieler => matthewn
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:30>
* needs_better_patch: 1 => 0
Comment:
Greetings from DjangoCon US! First time contributor here with a pull
request for this: https://github.com/django/django/pull/16206
Note: Earlier discussion in this ticket considered altering the behavior
for 'save and continue' as well, but I am not sure that actually makes
sense from a use case perspective. My proposed fix is much more targeted,
addressing only the 'save and add another' issue mentioned in the ticket
title.
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:31>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:32>
* needs_better_patch: 1 => 0
Comment:
As requested in the PR, I've expanded my fix to cover save-and-add and
save-and-continue on both add and change forms. Four tests cover the four
cases. https://github.com/django/django/pull/16206
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:33>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:34>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:35>
* owner: matthewn => Mariana
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:36>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:37>
Comment (by Lily Foote):
The patch looks good to me, but would probably benefit from a review from
someone more familiar with the admin. There's also some code we think is
dead that we're not sure whether to delete as part of this ticket or as a
separate PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:38>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:39>
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:40>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:41>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fc62e17778dad9eab9e507d90d85a33d415f64a7" fc62e177]:
{{{
#!CommitTicketReference repository=""
revision="fc62e17778dad9eab9e507d90d85a33d415f64a7"
Fixed #12241 -- Preserved query strings when using "Save and continue/add
another" in admin.
Co-authored-by: Grady Yu <gra...@users.noreply.github.com>
Co-authored-by: David Sanders <shang.xia...@gmail.com>
Co-authored-by: Matthew Newton <matt...@berkeley.edu>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:42>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"0bbe6ca2ac3d70e44081e54c235ff21568bf832c" 0bbe6ca2]:
{{{
#!CommitTicketReference repository=""
revision="0bbe6ca2ac3d70e44081e54c235ff21568bf832c"
[5.0.x] Fixed #12241 -- Preserved query strings when using "Save and
continue/add another" in admin.
Co-authored-by: Grady Yu <gra...@users.noreply.github.com>
Co-authored-by: David Sanders <shang.xia...@gmail.com>
Co-authored-by: Matthew Newton <matt...@berkeley.edu>
Backport of fc62e17778dad9eab9e507d90d85a33d415f64a7 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:43>
Comment (by odinho):
This app I was working on when filing this bug 14 years ago is not used
anymore. But I have a more recent one made 12 years ago which is still in
production and could benefit from this in the next release. ;)
Thank you all! :)))
--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:44>