X-Git-Url: https://git.0d.be/?p=chloro.git;a=blobdiff_plain;f=chloro%2Fphyll%2Fviews.py;h=6f0f0f701fed8dca4047bc50523e1ba902962479;hp=78d2fec19de64e18ec5804ac5b91fe5cce7e3044;hb=0fc394d0d3287c234a88941327505e25710f36d7;hpb=ae8e97fcc17a203a6b03a97e086e03210ae478d3 diff --git a/chloro/phyll/views.py b/chloro/phyll/views.py index 78d2fec..6f0f0f7 100644 --- a/chloro/phyll/views.py +++ b/chloro/phyll/views.py @@ -65,6 +65,11 @@ class NoteDeleteView(DeleteView): class HomeView(TemplateView): template_name = 'phyll/home.html' + def get_context_data(self, **kwargs): + context = super(HomeView, self).get_context_data(**kwargs) + context['latest'] = Note.objects.filter(published=True).latest('creation_timestamp') + return context + class ArchivesView(ListView): model = Note