Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
10
judge/views/__init__.py
Normal file
10
judge/views/__init__.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue