[Django] #32063: windowname_to_id function missing from RelatedObjectLookup.js

9 views
Skip to first unread message

Django

unread,
Oct 1, 2020, 8:26:07 PM10/1/20
to django-...@googlegroups.com
#32063: windowname_to_id function missing from RelatedObjectLookup.js
-----------------------------------------+------------------------
Reporter: kyashford | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I am using the django-dynamic-raw-id in my project which calls the
windowname_to_id function that user to be in RelatedObjectLookup.js for in
the js/admin folder. After upgrading to Django 3.1.1 the windowname_to_id
function is no longer there. Was this removed on purpose and I should see
other solutions?

function windowname_to_id(text) {
text = text.replace(/__dot__/g, '.');
text = text.replace(/__dash__/g, '-');
return text;
}

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

Django

unread,
Oct 2, 2020, 12:17:37 AM10/2/20
to django-...@googlegroups.com
#32063: windowname_to_id function missing from RelatedObjectLookup.js
-------------------------------+--------------------------------------
Reporter: kyashford | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid
* component: Uncategorized => contrib.admin


Old description:

> I am using the django-dynamic-raw-id in my project which calls the
> windowname_to_id function that user to be in RelatedObjectLookup.js for
> in the js/admin folder. After upgrading to Django 3.1.1 the
> windowname_to_id function is no longer there. Was this removed on
> purpose and I should see other solutions?
>
> function windowname_to_id(text) {
> text = text.replace(/__dot__/g, '.');
> text = text.replace(/__dash__/g, '-');
> return text;
> }

New description:

I am using the django-dynamic-raw-id in my project which calls the
windowname_to_id function that user to be in RelatedObjectLookup.js for in
the js/admin folder. After upgrading to Django 3.1.1 the windowname_to_id
function is no longer there. Was this removed on purpose and I should see
other solutions?
{{{
function windowname_to_id(text) {
text = text.replace(/__dot__/g, '.');
text = text.replace(/__dash__/g, '-');
return text;
}
}}}

--

Comment:

`windowname_to_id` was a workaround for IE and a part of private API.
Admin doesn't support IE anymore, see
8b30360322d4de6687e17ab267a856db4e3c78a6. You should report this in
`django-dynamic-raw-id` not in Django itself.

--
Ticket URL: <https://code.djangoproject.com/ticket/32063#comment:1>

Reply all
Reply to author
Forward
0 new messages