1👍
✅
I’m not entirely sure what’s going on with {% if group_list|length == 0 %}
, but you can always use if
statement to test the emptiness of the list:
{% if group_list %}
Note that django also has length_is filter to test exact length, so your use case would most likely not supported by django.
Source:stackexchange.com