|
@ -7,7 +7,7 @@ from .models import Problem, Cislo, Reseni, VysledkyKCislu, Nastaveni, Rocnik, S |
|
|
|
|
|
|
|
|
def AktualniZadaniView(request): |
|
|
def AktualniZadaniView(request): |
|
|
nastaveni = get_object_or_404(Nastaveni) |
|
|
nastaveni = get_object_or_404(Nastaveni) |
|
|
return render(request, 'seminar/AktualniZadani.html', |
|
|
return render(request, 'seminar/zadani/AktualniZadani.html', |
|
|
{'nastaveni' : nastaveni, |
|
|
{'nastaveni' : nastaveni, |
|
|
}, |
|
|
}, |
|
|
) |
|
|
) |
|
@ -23,22 +23,22 @@ class CislaView(generic.ListView): |
|
|
|
|
|
|
|
|
class RocnikView(generic.DetailView): |
|
|
class RocnikView(generic.DetailView): |
|
|
model = Rocnik |
|
|
model = Rocnik |
|
|
template_name = 'seminar/rocnik.html' |
|
|
template_name = 'seminar/archiv/rocnik.html' |
|
|
|
|
|
|
|
|
class SoustredeniView(generic.DetailView): |
|
|
class SoustredeniView(generic.DetailView): |
|
|
model = Soustredeni |
|
|
model = Soustredeni |
|
|
template_name = 'seminar/soustredeni.html' |
|
|
template_name = 'seminar/archiv/soustredeni.html' |
|
|
|
|
|
|
|
|
class ProblemView(generic.DetailView): |
|
|
class ProblemView(generic.DetailView): |
|
|
model = Problem |
|
|
model = Problem |
|
|
template_name = 'seminar/problem.html' |
|
|
template_name = 'seminar/archiv/problem.html' |
|
|
|
|
|
|
|
|
class RadekVysledkovky(object): |
|
|
class RadekVysledkovky(object): |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
class CisloView(generic.DetailView): |
|
|
class CisloView(generic.DetailView): |
|
|
model = Cislo |
|
|
model = Cislo |
|
|
template_name = 'seminar/cislo.html' |
|
|
template_name = 'seminar/archiv/cislo.html' |
|
|
def get_context_data(self, **kwargs): |
|
|
def get_context_data(self, **kwargs): |
|
|
context = super(CisloView, self).get_context_data(**kwargs) |
|
|
context = super(CisloView, self).get_context_data(**kwargs) |
|
|
|
|
|
|
|
|