No output in mate list
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
{% block body %}
|
||||
<div id="content-main">
|
||||
<div class="row">
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<h2>Neueste Nachrichten</h2>
|
||||
<p class="text-right">
|
||||
@@ -110,18 +111,17 @@
|
||||
</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% for mandant in mandant_dict %}
|
||||
|
||||
{% for mate in mandant_dict.mandant %}
|
||||
<tr>
|
||||
<td>{{ mate.mate.first_name }}</td>
|
||||
<td>{{ mate.sum_score }}</td>
|
||||
{% for tipp in mate.tipps %}
|
||||
<td>{{ tipp }}</td>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% for mandant, list in mandant_dict.items %}
|
||||
{% for mate in list %}
|
||||
<tr>
|
||||
<td>{{ mate.mate.first_name }}</td>
|
||||
<td>{{ mate.sum_score }}</td>
|
||||
{% for tipp in mate.tipps %}
|
||||
<td>{{ tipp }}</td>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -450,8 +450,10 @@ def matchday(request, ls, season, matchday, template_name='md.html'):
|
||||
except:
|
||||
cur_group = "N/A"
|
||||
|
||||
debug += str(mandant_dict)
|
||||
|
||||
return render(request, 'md.html', {
|
||||
#'debug': debug,
|
||||
'debug': debug,
|
||||
#'mds_season': mds_in_season,
|
||||
'cur_md': matchday,
|
||||
'md_name': cur_group,
|
||||
|
||||
Reference in New Issue
Block a user