Commits

Matthew Schinckel committed 02f2347

Only use settings.STATIC_URL if it is set.
Resolves #2.

  • Participants
  • Parent commits ad647d5

Comments (0)

Files changed (1)

File jsonfield/widgets.py

 
 class JSONTableWidget(JSONWidget):
     class Media:
-        if hasattr(settings, 'STATIC_URL'):
+        if hasattr(settings, 'STATIC_URL') and settings.STATIC_URL:
             js = (
                 settings.STATIC_URL + 'js/jquery-1.4.4.js',
                 settings.STATIC_URL + 'js/jquery.tmpl.js',