From: Guillaume Pellerin Date: Mon, 21 Jul 2014 22:10:04 +0000 (+0200) Subject: fix filter, bad coding but no time TOFIX :( !!! X-Git-Tag: 2.8.1-pro~282^2~56 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4d971839f1e669c68b33d7fb3ba7aa5cad647b0b;p=teleforma.git fix filter, bad coding but no time TOFIX :( !!! --- diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 45a2b744..217aad22 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -174,7 +174,7 @@ class SeminarView(SeminarAccessMixin, DetailView): messages.info(self.request, _("You have successfully terminated all steps of your e-learning seminar. You can now download your training testimonial below.")) delta = self.get_delta(user, seminar) - if datetime.datetime.now() > REVISION_DATE_FILTER: + if user.is_superuser or 'cnb' in user.username or 'test' in user.username: time = delta - datetime.timedelta(seconds=seminar.duration.as_seconds()) context['seminar_time'] = time.total_seconds() context['delta'] = str(delta).split('.')[0]