From 7eec77ca904d9484e47ddb3d1007c36e686617c9 Mon Sep 17 00:00:00 2001 From: Elrond Date: Tue, 30 Apr 2013 23:44:56 +0200 Subject: [PATCH] Fix media manager reference in video. An uninstantiated bare media manager doesn't any more support ["something"]. You need to do .something. Fixed for .source_type(). --- mediagoblin/media_types/video/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/media_types/video/models.py b/mediagoblin/media_types/video/models.py index f696a892..0b52c53f 100644 --- a/mediagoblin/media_types/video/models.py +++ b/mediagoblin/media_types/video/models.py @@ -90,7 +90,7 @@ class VideoData(Base): return '%s; codecs="%s, %s"' % ( mimetype, video_codec, audio_codec) else: - return video.MEDIA_MANAGER["default_webm_type"] + return video.VideoMediaManager.default_webm_type DATA_MODEL = VideoData -- 2.25.1