Small correction
authorymh <ymh.work@gmail.com>
Tue, 31 Dec 2013 16:15:18 +0100
changeset 235 94e489c5f883
parent 234 81989721973a
child 236 92b880e5901c
Small correction
src/jocondelab/views/front_office.py
--- a/src/jocondelab/views/front_office.py	Fri Dec 20 14:36:18 2013 +0100
+++ b/src/jocondelab/views/front_office.py	Tue Dec 31 16:15:18 2013 +0100
@@ -87,11 +87,10 @@
         if self.template_name is None:
             if is_ajax and page > 1:
                 self.template_name = "jocondelab/partial/notice_list.html"
+            elif is_ajax:
+                self.template_name = "jocondelab/partial/wrapped_notice_list.html"
             else:
-                if is_ajax:
-                    self.template_name = "jocondelab/partial/wrapped_notice_list.html"
-                else:
-                    self.template_name = "jocondelab/front_search.html"
+                self.template_name = "jocondelab/front_search.html"
         
         # Get first image url with extra : avoid prefetch on all images 
         qs = Notice.objects.filter(image=True)