Forgotten views change
authordurandn
Fri, 09 Dec 2016 15:59:51 +0100
changeset 278 e7efb0936640
parent 277 71a25549001d
child 279 46d0cbad3f8d
Forgotten views change
src/iconolab/views/objects.py
--- a/src/iconolab/views/objects.py	Fri Dec 09 15:51:28 2016 +0100
+++ b/src/iconolab/views/objects.py	Fri Dec 09 15:59:51 2016 +0100
@@ -23,6 +23,7 @@
         context = {}
         context['collections_primary'] = Collection.objects.filter(show_image_on_home=True).all()
         context['collections_secondary'] = Collection.objects.filter(show_image_on_home=False).all()
+        context['homepage'] = True
         return render(request, 'iconolab/home.html', context)
 
 class TestView(View):
@@ -400,7 +401,6 @@
         annotation.stats.save()
         return render(request, 'iconolab/detail_annotation.html', context)
 
-
 class EditAnnotationView(View, ContextMixin, IconolabObjectView):
 
     def get_context_data(self, **kwargs):