Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ResultView(TemplateView):
- template_name = 'game/result.html'
- def get_context_data(self, **kwargs):
- game_obj = GameSession.objects.filter(user=self.request.user)[:1]
- data = super().get_context_data(**kwargs)
- data['game_result'] = game_obj
- # data['high_scores'] = high_scores
- # data['your_place'] = your_place
- return data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement