diff --git a/stories/writingtogether/templates/writingtogether/index.html b/stories/writingtogether/templates/writingtogether/index.html index 30e5dce..5659a4e 100644 --- a/stories/writingtogether/templates/writingtogether/index.html +++ b/stories/writingtogether/templates/writingtogether/index.html @@ -8,11 +8,12 @@

Geschichten!

-{% if latest_story_round_list %} +

Offene Runden

+{% if open_story_round_list %} diff --git a/stories/writingtogether/views.py b/stories/writingtogether/views.py index 8298f75..e709d2b 100644 --- a/stories/writingtogether/views.py +++ b/stories/writingtogether/views.py @@ -11,9 +11,10 @@ from writingtogether.models import Story, StoryPart, StoryRound, Participant class IndexView(generic.ListView): template_name = 'writingtogether/index.html' - context_object_name = 'latest_story_round_list' + context_object_name = 'open_story_round_list' def get_queryset(self): + # TODO: show open & finished rounds return StoryRound.objects.order_by('-created')[:5]