diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2014-03-27 22:04:01 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2014-03-27 22:04:01 +0100 | 
| commit | fdf58af099829f61729770d674a7064118e55354 (patch) | |
| tree | 5dff555b4e8526a60acc204a3af18fc4a8a60e45 /archaeological_operations/forms.py | |
| parent | 9ab9100a742b5ef78f522619a4118aaa36917966 (diff) | |
| download | Ishtar-fdf58af099829f61729770d674a7064118e55354.tar.bz2 Ishtar-fdf58af099829f61729770d674a7064118e55354.zip  | |
Hide operaion code on operation creation (refs #1730)
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")  | 
