Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Uncaught TypeError: Cannot read property 'push' of undefined" #167

Open
d33tah opened this issue May 18, 2016 · 3 comments
Open

"Uncaught TypeError: Cannot read property 'push' of undefined" #167

d33tah opened this issue May 18, 2016 · 3 comments
Labels

Comments

@d33tah
Copy link

d33tah commented May 18, 2016

I tried to use the "add " popup in django admin and after saving, I get the following error in the console:

Uncaught TypeError: Cannot read property 'push' of undefined

Tested on django-admin-bootstrapped. Is there any code to receive the "push"?

@mlavin
Copy link
Owner

mlavin commented May 19, 2016

I don't know about django-admin-bootstrapped but there is code to handle this for the normal add-another pop-up. However, it requires monkey-patching the JS from the admin, namely the dismissAddAnotherPopup callback, and that seems to break with every Django release. What version of Django are you using?

@d33tah
Copy link
Author

d33tah commented May 19, 2016

@mlavin 1.8.2 right now.

@mlavin
Copy link
Owner

mlavin commented May 19, 2016

There were a number of changes to the admin JS in 1.8 and I thought I had pushed this compatibility on master but I'm not seeing it. Where could that have gone....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants