Commits

Mark Lavin committed bb0bf5a

Fix MEDIA_PREFIX for blank STATIC_URL. Fixes #45.

Comments (0)

Files changed (1)

selectable/forms/widgets.py

 
 MEDIA_URL = settings.MEDIA_URL
 STATIC_URL = getattr(settings, 'STATIC_URL', u'')
-MEDIA_PREFIX = u'%sselectable/' % STATIC_URL or MEDIA_URL
+MEDIA_PREFIX = u'%sselectable/' % (STATIC_URL or MEDIA_URL)
 
 
 class SelectableMediaMixin(object):