Answer the question
In order to leave comments, you need to log in
What is the right way to include in a for loop?
<b-tabs>
</b-tab>
{% for department in user.departments.all %}
<b-tab title="{{ department.short_name }}">
{% include 'department/' + department.name + '/index.html' %}
</b-tab>
{% endfor %}
</b-tabs>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question