]> git.parisson.com Git - teleforma.git/commitdiff
fix media.course save
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 17 Apr 2012 12:01:42 +0000 (14:01 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 17 Apr 2012 12:01:42 +0000 (14:01 +0200)
teleforma/models.py

index 87c3d0e8b0f59bc007cc32ad2e56de80b0c8ad91..1acc93333890aa75b773eafa4c3bdb4f9cb2fa3b 100755 (executable)
@@ -275,6 +275,10 @@ class Media(MediaBase):
         else:
             return description
 
+    def save(self, **kwargs):
+        super(Media, self).save(**kwargs)
+        self.course.save()
+
     class Meta:
         db_table = app_label + '_' + 'media'
         ordering = ['-date_modified']