Skip to content

Commit

Permalink
fix resource registry
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed May 6, 2013
1 parent 0d45830 commit 95a667b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deform_bootstrap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def add_resources_to_registry():
registry = Form.default_resource_registry
for rqrt, versions in default_resources.items():
for version, resources in versions.items():
registry.set_js_resources(rqrt, version, resources.get('js'))
registry.set_css_resources(rqrt, version, resources.get('css'))
registry.set_js_resources(rqrt, version, *resources.get('js'))
registry.set_css_resources(rqrt, version, *resources.get('css'))

def add_search_path():
loader = Form.default_renderer.loader
Expand Down
4 changes: 2 additions & 2 deletions deform_bootstrap/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
'css':("jquery_chosen/chosen.css",
"chosen_bootstrap.css",)}
},
"bootstrap":{None:{'js':'bootstrap.min.js',
'css':'deform_bootstrap.css'}},
"bootstrap":{None:{'js':('bootstrap.min.js',),
'css':('deform_bootstrap.css',)}},
}

0 comments on commit 95a667b

Please sign in to comment.