# HG changeset patch # User ymh # Date 1388502918 -3600 # Node ID 94e489c5f8838685b0f6503a47e0aa239b2277a3 # Parent 81989721973a8a0a81d9dfa57b20cf54af5980d5 Small correction diff -r 81989721973a -r 94e489c5f883 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)