diff options
Diffstat (limited to 'archaeological_operations/forms.py')
| -rw-r--r-- | archaeological_operations/forms.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 1a9fffa6e..53187f7e5 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -251,7 +251,7 @@ class OperationFormSelection(forms.Form):              raise forms.ValidationError(_(u"You should select an operation."))          return cleaned_data -class OperationCodeInput(forms.TextInput): +class OperationCodeInput(forms.HiddenInput):      """Manage auto complete when changing year in form"""      def render(self, *args, **kwargs):          name, value = args @@ -273,7 +273,7 @@ class OperationCodeInput(forms.TextInput):          $(document).ready(initialyse_operation_code());          //--></script>\n""" % {'base_name':base_name, 'name':name,                                 'url':reverse_lazy('get_available_operation_code')} -        return rendered + js +        return mark_safe(rendered + js)  class OperationFormGeneral(forms.Form):      form_label = _(u"General") | 
