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