django-admin-bootstrap
django-admin-bootstrap copied to clipboard
"Invalid block tag on line 132: 'ifequal', expected 'endblock'. Did you forget to register or load this tag?"
Fresh install on a fresh (empty) Django project, did everything based on tutorial here.
<html>
<body>
<!--StartFragment-->
122 | <div class="{% if action_form and actions_on_bottom and cl.full_result_count %}col-sm-8{% else %}col-sm-12{% endif %}">
-- | --
{% block pagination %}{% pagination cl %}{% endblock %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
<div class="panel-footer" id="panel-footer">
<span class="info pull-left">
{{ cl.result_count }}
{% ifequal cl.result_count 1 %}
{{ cl.opts.verbose_name }}
{% else %}
{{ cl.opts.verbose_name_plural }}
{% endifequal %}
</span>
<div class="right-buttons">
<a href="#panel-heading" class="btn btn-default btn-xs" role="button">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
{% if cl.formset and cl.result_count %}
<!--EndFragment-->
</body>
</html>
same for me.
works fine for me:
$ pip3 install git+https://github.com/douglasmiranda/django-admin-bootstrap@3e91bfc10b1e14c145a87d34ce4dd08f74e0f6a2
Doesn't work with a new versions of django - ifequal was deprecated quite some time ago.
Is there a fix?
Not really. Use older versions of everything so it runs just fine, but then you can never upgrade to newer versions because this pckg is deprecated.
I'm not sure if the developer abandoned it or not, so..