Switch to using render_partial instead of include
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
{% for u in users %}
|
||||
{% with user=u, workouts=u.workouts, bikes=bikes %}
|
||||
{% include 'workouts_list.html' %}
|
||||
{% endwith %}
|
||||
{{ render_partial('workouts_list.html', user=u, workouts=u.workouts, bikes=bikes) }}
|
||||
{% endfor %}
|
||||
|
||||
<script>
|
||||
@@ -12,6 +10,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
{% with users=users, bikes=bikes %}
|
||||
{% include 'users.html' %}
|
||||
{% endwith %}
|
||||
{{ render_partial('users.html', users=users, bikes=bikes) }}
|
||||
Reference in New Issue
Block a user