]> git.parisson.com Git - teleforma.git/commitdiff
fix revision create
authoryomguy <yomguy@parisson.com>
Thu, 24 Jan 2013 22:51:18 +0000 (23:51 +0100)
committeryomguy <yomguy@parisson.com>
Thu, 24 Jan 2013 22:51:18 +0000 (23:51 +0100)
teleforma/views/pro.py

index e7c07eec1c7c80f13599b16f0cafc2423211aeea..26474c4194f56bc1b00eaa268c784d46f70afefe 100644 (file)
@@ -201,6 +201,8 @@ class SeminarMediaView(MediaView):
         context['media'] = media
         context['seminar_progress'] = seminar_progress(user, seminar)
         revision, c = SeminarRevision.objects.get_or_create(seminar=seminar, user=user)
+        if not c:
+            revision.save()
         return context
 
     def get_object(self, queryset=None):
@@ -322,6 +324,7 @@ class AnswersView(ListView):
             title = unicode(_('Subtitle')) + ' : ' + seminar.sub_title
         else:
             title = unicode(_('Course')) + ' : ' + seminar.course.title
+
         organization = seminar.course.department.name
         context['first_name'] = user.first_name
         context['last_name'] = user.last_name