#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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.3f3e191bb1334b74be8b980ce6befac7%40djangoproject.com.

Reply via email to