pop up window in django

Question
Hey, this for loop can only display one course when i press the pop up button, I don't unserstand why it cannot loop through all the courses. Without the pop up i can display all the courses. Please help!!!Thanks in advance!!
<td>
    <div data-role="main" class="ui-content">
        <a href="#myPopup" data-rel="popup">Courses</a>
        <div data-role="popup" id="myPopup" class="ui-content" style="min-width:250px;">
            {% for n in college.junction_set.all %}
                    {{ n.course_name }}
                    {{ n.course_name.examiner_body }}
                    {{ n.course_name.course_capacity }}<br>
            {% endfor %}
        </div>
    </div>
</td>

 

Guest Oct. 10, 2016, 8:26 a.m. 0 Answer

Warning! You are not logged in.
Your answer will be published as Guest user.

Post your Answer

 Prev question