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

Admin Integration Expects Global jQuery? #46

Closed
jpulec opened this issue Apr 27, 2016 · 3 comments
Closed

Admin Integration Expects Global jQuery? #46

jpulec opened this issue Apr 27, 2016 · 3 comments
Assignees
Labels
Bug Normal Medium Priority Ticket
Milestone

Comments

@jpulec
Copy link
Contributor

jpulec commented Apr 27, 2016

I've been trying to get the autocomplete to work in the django admin, but cannot. I've correctly set up my ModelAdmin as so:

from address.forms import AddressWidget
from address.models import AddressField

class SavedDeliveryLocationAdmin(admin.ModelAdmin):
  formfield_overrides = {
    AddressField: {'widget': AddressWidget()}
  }

but when I open the admin, my console tells me that $ is not a function for address.js and Cannot read property 'extend' of undefined for jquery.geocomplete.js. It would appear that these files expect jQuery to be a global, but it is not.

I'm using django 1.9.5.

@ixeft
Copy link

ixeft commented Jul 3, 2016

Same here

EDIT: it's working on the dev branch

@banagale banagale added this to the Version 0.2.3 milestone Apr 20, 2020
@banagale
Copy link
Collaborator

Assigning this to 0.2.3. If this is still broken or improperly implemented in master we'll fix it before the big changes to 0.3.0/

@banagale banagale added Bug Normal Medium Priority Ticket labels Jun 23, 2020
@banagale banagale added the In-Progress This ticket is in active development label Jun 28, 2020
@banagale banagale self-assigned this Jun 28, 2020
@banagale banagale removed the In-Progress This ticket is in active development label Jun 28, 2020
@banagale
Copy link
Collaborator

Looked into this and tested it. This seems to have been fixed in @karbassi's 2018 commit.

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

No branches or pull requests

3 participants