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

AJAX keeps on calling the same page's URL instead of the API URL #127

Closed
ghost opened this issue Aug 9, 2018 · 2 comments
Closed

AJAX keeps on calling the same page's URL instead of the API URL #127

ghost opened this issue Aug 9, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 9, 2018

For some reason, AJAX keeps on calling the same page URL when trying to get the JSON output from an API URL.

URL should be : http://127.0.0.1:8000/asset/api/asset_list
But the URL used is : http://127.0.0.1:8000/user/1?field_name=assets

I hope you guys can help.

@jfdl
Copy link

jfdl commented Aug 12, 2018

It seems to be related to the Select2 version you are using.

Try with select2@4.0.5

It's working for me

@ghost
Copy link
Author

ghost commented Aug 13, 2018

This did the trick. Though, very annoying that it was just a versioning problem.

@ghost ghost closed this as completed Aug 13, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant