--- 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)