Fix deform widget resource inclusion for master/create template

This commit is contained in:
Lance Edgar 2017-09-23 16:26:22 -05:00
parent 52747ea6bd
commit e283288a26

View file

@ -7,15 +7,13 @@
${parent.extra_javascript()}
${self.disable_button_js()}
% if dform is not Undefined:
% for field in dform:
<% resources = field.get_widget_resources() %>
<% resources = dform.get_widget_resources() %>
% for path in resources['js']:
${h.javascript_link(request.static_url(path))}
% endfor
% for path in resources['css']:
${h.stylesheet_link(request.static_url(path))}
% endfor
% endfor
% endif
</%def>