From 4d971839f1e669c68b33d7fb3ba7aa5cad647b0b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 22 Jul 2014 00:10:04 +0200 Subject: [PATCH] fix filter, bad coding but no time TOFIX :( !!! --- teleforma/views/pro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.5