|
|
@ -2,7 +2,7 @@ from django.shortcuts import get_object_or_404, render |
|
|
|
from django.http import HttpResponseRedirect |
|
|
|
from django.core.urlresolvers import reverse |
|
|
|
from django.views import generic |
|
|
|
from .models import Problem, Cislo, Reseni, VysledkyKCislu, Nastaveni, Rocnik |
|
|
|
from .models import Problem, Cislo, Reseni, VysledkyKCislu, Nastaveni, Rocnik, Soustredeni |
|
|
|
|
|
|
|
|
|
|
|
def AktualniZadaniView(request): |
|
|
@ -16,6 +16,10 @@ class RocnikView(generic.DetailView): |
|
|
|
model = Rocnik |
|
|
|
template_name = 'seminar/rocnik.html' |
|
|
|
|
|
|
|
class SoustredeniView(generic.DetailView): |
|
|
|
model = Soustredeni |
|
|
|
template_name = 'seminar/soustredeni.html' |
|
|
|
|
|
|
|
class ProblemView(generic.DetailView): |
|
|
|
model = Problem |
|
|
|
template_name = 'seminar/problem.html' |
|
|
|