|
@ -66,7 +66,7 @@ def ZadaniAktualniVysledkovkaView(request): |
|
|
class TitulniStranaView(generic.ListView): |
|
|
class TitulniStranaView(generic.ListView): |
|
|
model = Novinky |
|
|
model = Novinky |
|
|
template_name='seminar/titulnistrana.html' |
|
|
template_name='seminar/titulnistrana.html' |
|
|
queryset = Novinky.objects.filter(zverejneno=True).order_by('-datum')[:5] |
|
|
queryset = Novinky.objects.order_by('-datum')[:5] |
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
def get_context_data(self, **kwargs): |
|
|
context = super(TitulniStranaView, self).get_context_data(**kwargs) |
|
|
context = super(TitulniStranaView, self).get_context_data(**kwargs) |
|
|