|
|
|
@ -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]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|