fix for adding modelinput metadata element
@@ -430,6 +430,11 @@ class ModelInputForm(ModelForm):
self.helper = ModelInputFormHelper(allow_edit, res_short_id, element_id,
element_name='ModelInput')
+ if res_short_id:
+ self.action = "/hsapi/_internal/%s/modelinput/add-metadata/" % res_short_id
+ else:
+ self.action = ""
+
@property
def form_id(self):
form_id = 'id_modelinput_%s' % self.number
