No output in mate list

This commit is contained in:
2016-10-06 10:45:18 +02:00
parent ffed1ef6e8
commit 26833e389a
2 changed files with 15 additions and 13 deletions

View File

@@ -12,6 +12,7 @@
{% block body %} {% block body %}
<div id="content-main"> <div id="content-main">
<div class="row"> <div class="row">
</div>
<div class="col-md-7"> <div class="col-md-7">
<h2>Neueste Nachrichten</h2> <h2>Neueste Nachrichten</h2>
<p class="text-right"> <p class="text-right">
@@ -110,18 +111,17 @@
</th> </th>
{% endfor %} {% endfor %}
</tr> </tr>
{% for mandant in mandant_dict %} {% for mandant, list in mandant_dict.items %}
{% for mate in list %}
{% for mate in mandant_dict.mandant %} <tr>
<tr> <td>{{ mate.mate.first_name }}</td>
<td>{{ mate.mate.first_name }}</td> <td>{{ mate.sum_score }}</td>
<td>{{ mate.sum_score }}</td> {% for tipp in mate.tipps %}
{% for tipp in mate.tipps %} <td>{{ tipp }}</td>
<td>{{ tipp }}</td> {% endfor %}
{% endfor %} {% endfor %}
{% endfor %} </tr>
</tr> {% endfor %}
{% endfor %}
</table> </table>
</div> </div>
</div> </div>

View File

@@ -450,8 +450,10 @@ def matchday(request, ls, season, matchday, template_name='md.html'):
except: except:
cur_group = "N/A" cur_group = "N/A"
debug += str(mandant_dict)
return render(request, 'md.html', { return render(request, 'md.html', {
#'debug': debug, 'debug': debug,
#'mds_season': mds_in_season, #'mds_season': mds_in_season,
'cur_md': matchday, 'cur_md': matchday,
'md_name': cur_group, 'md_name': cur_group,