Django admin: 'bool' object has no attribute 'startswith'

Use in settings.py:

USE_DJANGO_JQUERY = True

Remove

JQUERY_URL = True

Had the same problem.

Remove from settings.py:

SMART_SELECTS_JQUERY_URL = True
JQUERY_URL = True

Whichever you are using.

Instead of them add scripts directly to templates of the pages when you are using smart-selects forms:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="{% static 'smart-selects/admin/js/bindfields.js' %}"></script>
<script src="{% static 'smart-selects/admin/js/chainedfk.js' %}"></script>

jQuery from smart-selects have to be interfering with admin page somehow.

Tags:

Django