Opened 4 years ago

Closed 4 years ago

#32063 closed Bug (invalid)

windowname_to_id function missing from RelatedObjectLookup.js

Reported by: kyashford Owned by: nobody
Component: contrib.admin Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Mariusz Felisiak)

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;
    }

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Component: Uncategorizedcontrib.admin
Description: modified (diff)
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top