Re: [Django] #12241: Admin forgets URL used for prefilling forms when hitting Save and add another

4 views
Skip to first unread message

Django

unread,
Feb 14, 2012, 6:57:05 AM2/14/12
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-------------------------------+------------------------------------
Reporter: velmont | Owner: batiste
Type: Bug | Status: new
Component: contrib.admin | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by michelts):

* 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.

Django

unread,
Oct 20, 2022, 2:04:19 PM10/20/22
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: matthewn
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by matthewn):

* owner: Batiste Bieler => matthewn
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:30>

Django

unread,
Oct 20, 2022, 5:59:33 PM10/20/22
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: matthewn
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by matthewn):

* 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>

Django

unread,
Oct 27, 2022, 7:35:27 AM10/27/22
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: matthewn
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:32>

Django

unread,
Nov 7, 2022, 5:05:11 PM11/7/22
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: matthewn
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by matthewn):

* 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>

Django

unread,
Nov 8, 2022, 3:54:54 AM11/8/22
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: matthewn
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:34>

Django

unread,
Jan 25, 2023, 2:47:03 AM1/25/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: matthewn
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:35>

Django

unread,
Aug 21, 2023, 8:10:38 PM8/21/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana

Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariana):

* owner: matthewn => Mariana


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:36>

Django

unread,
Aug 24, 2023, 7:12:47 PM8/24/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariana):

* needs_better_patch: 1 => 0
* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:37>

Django

unread,
Sep 19, 2023, 9:45:24 AM9/19/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------

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>

Django

unread,
Sep 26, 2023, 11:42:36 PM9/26/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:39>

Django

unread,
Oct 5, 2023, 4:28:33 PM10/5/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-----------------------------------+------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Mariana):

* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:40>

Django

unread,
Oct 11, 2023, 5:03:49 AM10/11/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-------------------------------------+-------------------------------------

Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/12241#comment:41>

Django

unread,
Oct 11, 2023, 6:45:14 AM10/11/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-------------------------------------+-------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* 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>

Django

unread,
Oct 11, 2023, 6:46:41 AM10/11/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-------------------------------------+-------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Oct 12, 2023, 7:14:02 AM10/12/23
to django-...@googlegroups.com
#12241: Admin forgets URL used for prefilling forms when hitting Save and add
another
-------------------------------------+-------------------------------------
Reporter: Odin Hørthe Omdal | Owner: Mariana
Type: Bug | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages