I am using django_smart_select package. I am getting the following error for the model in which I am trying to use the chained select option.
AttributeError at /admin/tags/tag/add/
'bool' object has no attribute 'startswith'
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/tags/tag/add/
Django Version: 1.11.4
Exception Type: AttributeError
Exception Value:
'bool' object has no attribute 'startswith'
Error during template rendering
In template C:\Users\gautammandewalker\Envs\django01\lib\site-
packages\django\contrib\admin\templates\admin\base.html, error at line 3
'bool' object has no attribute 'startswith'
1 {% load i18n static %}<!DOCTYPE html>
2 {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi
as LANGUAGE_BIDI %}
3 <html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI
%}dir="rtl"{% endif %}>
4 <head>
5 <title>{% block title %}{% endblock %}</title>
6 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{%
static "admin/css/base.css" %}{% endblock %}" />
7 {% block extrastyle %}{% endblock %}
8 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{%
block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{%
endif %}
9 {% block extrahead %}{% endblock %}
10 {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{%
endblock %}
11 </head>
12 {% load i18n %}
Use in settings.py
:
USE_DJANGO_JQUERY = True
Remove
JQUERY_URL = True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With