1👍
✅
I don’t understand why you’re trying to use cycle for only one thing. That doesn’t make sense.
If you want to set a class for the first element only, use {% if forloop.first %}
.
Source:stackexchange.com