django-admin-bootstrap icon indicating copy to clipboard operation
django-admin-bootstrap copied to clipboard

"Invalid block tag on line 132: 'ifequal', expected 'endblock'. Did you forget to register or load this tag?"

Open webtomek opened this issue 3 years ago • 2 comments

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>

webtomek avatar May 01 '22 15:05 webtomek

same for me.

bifot avatar Sep 17 '22 14:09 bifot

works fine for me:

$ pip3 install git+https://github.com/douglasmiranda/django-admin-bootstrap@3e91bfc10b1e14c145a87d34ce4dd08f74e0f6a2

bifot avatar Sep 17 '22 15:09 bifot

Doesn't work with a new versions of django - ifequal was deprecated quite some time ago.

SimonMobi avatar Jan 10 '23 08:01 SimonMobi

Is there a fix?

shayneoneill avatar Feb 17 '23 08:02 shayneoneill

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..

webtomek avatar Feb 17 '23 09:02 webtomek