question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ForeignKeyAutocompleteAdmin not working in django1.11

See original GitHub issue

My admin.py is

related_search_fields = {'organization': ('name', 'organization_code')}
organization is a fk

when I click at the magnifier, a new window opens the organization admin page, when it search? And there are same javascript error

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MarkBirdcommented, Feb 22, 2018

I have the same problem - I’ve added ForeignKeyAutocompleteAdminMixin to both sides of the FK relationship, but there is no autocomplete going on at all - nothing happens if I type in the input. If I click the search icon (one of which is missing) I can search in the pop-up window, but that’s the only thing that’s working.

Is this something that would be fixed by fixing the jQuery problem? Unfortunately garrybodsworth’s diff is missing from his comment so I can’t actually see what he did to fix it.

0reactions
abdulwahid24commented, Nov 10, 2017

Same issue. @garrybodsworth It would be great if you elaborate a little bit more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Admin Extensions — django-extensions 3.2.1 documentation
The current version of the ForeignKeyAutocompleteAdmin has issues with recent Django versions. We strongly suggest project using this extension to update to ...
Read more >
Django-admin is not working Django 1.11 Python 3.6
Exprator's answer worked for me. I installed Django while inside virtualenv and did "django-admin --version", it works fine then I did the ...
Read more >
django-extensions Documentation - Read the Docs
Please be aware and careful when using ForeignKeyAutocompleteAdmin. • The current version of the ForeignKeyAutocompleteAdmin has issues with ...
Read more >
28488 (Django 1.11+ raises CSRF verification failed if settings ...
I'm using Django1.11 (and made tests also with Django1.11.4) and having problems when submitting a ... DEBUG , submitted again, and the problem...
Read more >
django-extensions Changelog - pyup.io
Please stop using ForeignKeyAutocompleteAdmin edition :-) Changes: ... at [https://github.com/django-extensions/django-extensions/issues]
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found