Browse Source

minule jsem ty změny zapomněla uložit

export_seznamu_prednasek
Kateřina Č 5 years ago
parent
commit
04c4c77c48
  1. 4
      seminar/views/views_all.py

4
seminar/views/views_all.py

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

Loading…
Cancel
Save