|
@ -245,13 +245,9 @@ def spravne_novinky(request): |
|
|
|
|
|
|
|
|
class TitulniStranaView(generic.ListView): |
|
|
class TitulniStranaView(generic.ListView): |
|
|
template_name='seminar/titulnistrana.html' |
|
|
template_name='seminar/titulnistrana.html' |
|
|
<<<<<<< HEAD |
|
|
|
|
|
queryset = Novinky.objects.order_by('-datum')[:2] |
|
|
|
|
|
======= |
|
|
|
|
|
|
|
|
|
|
|
def get_queryset(self): |
|
|
def get_queryset(self): |
|
|
return spravne_novinky(self.request)[:5] |
|
|
return spravne_novinky(self.request)[:5] |
|
|
>>>>>>> data_migrations |
|
|
|
|
|
|
|
|
|
|
|
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) |
|
|