Fix the last bit preventing all the unit tests from passing in media types->plugins
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Jul 2013 20:52:20 +0000 (15:52 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Jul 2013 20:52:20 +0000 (15:52 -0500)
The last commit was also small, so Jeff Moe gets... two!  Two sponsored commits!
Ah ah ah. </count_voice>

mediagoblin/db/mixin.py

index 26e41a3b24fd259578f1d74fa8c9ce538b895e03..ee8525c280796ad6f89b9839f680bf10338bf052 100644 (file)
@@ -205,7 +205,8 @@ class MediaEntryMixin(GenerateSlugMixin):
         """
         manager = hook_handle('get_media_manager', self.media_type)
         if manager:
-            return manager
+            return manager(self)
+
         # Not found?  Then raise an error
         raise FileTypeNotSupported(
             "MediaManager not in enabled types. Check media_type plugins are"