Re: [Django] #9107: URL arguments to set values of fields in admin don't work for inlines

10 views
Skip to first unread message

Django

unread,
Apr 30, 2020, 11:51:10 PM4/30/20
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+---------------------------------------
Reporter: josh@… | Owner: TapanGujjar
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------
Changes (by TapanGujjar):

* owner: nobody => TapanGujjar
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 6, 2020, 1:19:55 AM5/6/20
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+---------------------------------------
Reporter: josh@… | Owner: TapanGujjar
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

Comment (by TapanGujjar):

For this feature, the correct query parameter for inline models according
to me should look something as inlinemode_set-[**inline model
index**]-[**index of the inline formset**]-[**fieldname**]. Also, should
the inline parameters override the extra parameter in the custom inline
Model as if we have more inline query parameters means for the inline mode
we will have to show more inline form just to show those more query
parameters

--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:6>

Django

unread,
May 6, 2020, 3:28:05 AM5/6/20
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+---------------------------------------
Reporter: josh@… | Owner: TapanGujjar
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------
Changes (by Carlton Gibson):

* cc: Carlton Gibson (added)


Comment:

> Any ideas for this.

Easier to see in code, I think.

After 12 years, you're free to implement your idea. (It sounds generally
reasonable.)

If you can open a PR with the easier cases handled and then perhaps
failing test cases for the more difficult examples it will be easier to
comment sensibly.
Does that seems an OK plan?

--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:7>

Django

unread,
May 8, 2020, 10:01:41 PM5/8/20
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+---------------------------------------
Reporter: josh@… | Owner: TapanGujjar
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

Comment (by TapanGujjar):

Hi Carlton please check the pull request for this. I have created two
tests to demonstrate my solutions. One of the test will fail.

https://github.com/django/django/pull/12882

--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:8>

Django

unread,
May 14, 2020, 6:18:16 AM5/14/20
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+---------------------------------------
Reporter: josh@… | Owner: TapanGujjar
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

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

* needs_better_patch: 0 => 1
* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:9>

Django

unread,
May 14, 2020, 6:24:19 AM5/14/20
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+---------------------------------------
Reporter: josh@… | Owner: TapanGujjar
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1

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

* needs_docs: 0 => 1
* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:10>

Django

unread,
Jan 28, 2021, 12:51:11 AM1/28/21
to django-...@googlegroups.com
#9107: URL arguments to set values of fields in admin don't work for inlines
-------------------------------+------------------------------------
Reporter: josh@… | Owner: (none)
Type: New feature | Status: new

Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: admin inline | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by TapanGujjar):

* owner: TapanGujjar => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/9107#comment:11>

Reply all
Reply to author
Forward
0 new messages