Cloned DMOJ

This commit is contained in:
thanhluong 2020-01-21 15:35:58 +09:00
parent f623974b58
commit 49dc9ff10c
513 changed files with 132349 additions and 39 deletions

10
judge/views/__init__.py Normal file
View file

@ -0,0 +1,10 @@
from django.views.generic import TemplateView
class TitledTemplateView(TemplateView):
title = None
def get_context_data(self, **kwargs):
if 'title' not in kwargs and self.title is not None:
kwargs['title'] = self.title
return super(TitledTemplateView, self).get_context_data(**kwargs)