[x] This issue is not about installing previous versions of django-smart-selects older than 1.2.8. I understand that previous versions are insecure and will not receive any support whatsoever.
[x] I have verified that that issue exists against the master branch of django-smart-selects.
[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] I have debugged the issue to the smart_selects app.
[x] I have reduced the issue to the simplest possible case.
[x] I have included all relevant sections of models.py, forms.py, and views.py with problems.
See an error in the console when accessing admin page with the field
Actual behavior
Error:
chainedm2m.js:123 Uncaught ReferenceError: node is not defined
at Object.success (chainedm2m.js:123)
at fire (jquery.js:3291)
at Object.fireWith [as resolveWith] (jquery.js:3421)
at done (jquery.js:9533)
at XMLHttpRequest.<anonymous> (jquery.js:9785)
Checklist
master
branch of django-smart-selects.smart_selects
app.models.py
,forms.py
, andviews.py
with problems.Steps to reproduce
ManyToMany
field withhorizontal=True
and add model to adminActual behavior
Error:
https://github.com/jazzband/django-smart-selects/blob/656e48579c7c37970bbd54ed7205aa029e6fd73a/smart_selects/static/smart-selects/admin/js/chainedm2m.js#L122-L123
Expected behavior
No errors