]> git.parisson.com Git - teleforma.git/commitdiff
diplay all old testimonials
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 1 Feb 2016 14:52:39 +0000 (15:52 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 1 Feb 2016 14:52:39 +0000 (15:52 +0100)
teleforma/views/pro.py

index 6ffd6c03f3ce26c44ae7b240ff6138f5791d24c6..fcdaa1762349336aad9496f18b87ab358887318c 100644 (file)
@@ -726,7 +726,7 @@ class TestimonialListView(ListView):
         testimonials = Testimonial.objects.filter(user=user)
         for testimonial in testimonials:
             seminar = testimonial.seminar
-            if seminar_validated(user, seminar) and get_seminar_delta(user, seminar) >= 0:
+            if seminar_validated(user, seminar) and (get_seminar_delta(user, seminar) >= 0 or testimonial.date_added <= REVISION_DATE_FILTER):
                 t.append(testimonial)
         return t