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 | 34340edea3ed34829a84087aaa7133d12aa9dd81 (patch) | |
tree | 5dff555b4e8526a60acc204a3af18fc4a8a60e45 /archaeological_operations | |
parent | 642e1e8461a6dafc22fa6c0bf021072e6bdb00f7 (diff) | |
download | Ishtar-34340edea3ed34829a84087aaa7133d12aa9dd81.tar.bz2 Ishtar-34340edea3ed34829a84087aaa7133d12aa9dd81.zip |
Hide operaion code on operation creation (refs #1730)
Diffstat (limited to 'archaeological_operations')
-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") |