diff --git a/templates/md.html b/templates/md.html index ad8621b..589e91f 100644 --- a/templates/md.html +++ b/templates/md.html @@ -12,6 +12,7 @@ {% block body %}
+

Neueste Nachrichten

@@ -110,18 +111,17 @@ {% endfor %} - {% for mandant in mandant_dict %} - - {% for mate in mandant_dict.mandant %} - - {{ mate.mate.first_name }} - {{ mate.sum_score }} - {% for tipp in mate.tipps %} - {{ tipp }} - {% endfor %} - {% endfor %} - - {% endfor %} + {% for mandant, list in mandant_dict.items %} + {% for mate in list %} + + {{ mate.mate.first_name }} + {{ mate.sum_score }} + {% for tipp in mate.tipps %} + {{ tipp }} + {% endfor %} + {% endfor %} + + {% endfor %}

diff --git a/tipp/views.py b/tipp/views.py index 9c66bb4..5ea4ee1 100644 --- a/tipp/views.py +++ b/tipp/views.py @@ -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,