summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-04-03 11:07:55 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2014-04-03 11:07:55 +0200
commit652e5c07c3dd2e7d825af0713c3d96c54ba56101 (patch)
treeccb7d4f888d146d91bb1978f5fd0409618ab336e /archaeological_operations
parent6b221c292ced0dc0760c5999c8005f7e3c65d64f (diff)
downloadIshtar-652e5c07c3dd2e7d825af0713c3d96c54ba56101.tar.bz2
Ishtar-652e5c07c3dd2e7d825af0713c3d96c54ba56101.zip
Can modify operation code (refs #1730)
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/forms.py3
-rw-r--r--archaeological_operations/views.py2
2 files changed, 1 insertions, 4 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index f8aafb362..d10019aa8 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -396,9 +396,6 @@ class OperationFormGeneral(forms.Form):
class OperationFormModifGeneral(OperationFormGeneral):
operation_code = forms.IntegerField(label=_(u"Operation code"),
initial=models.Operation.get_available_operation_code)
- def __init__(self, *args, **kwargs):
- super(OperationFormGeneral, self).__init__(*args, **kwargs)
- self.fields['operation_code'].widget.attrs['readonly'] = True
class OperationFormPreventive(forms.Form):
form_label = _(u"Preventive informations - excavation")
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index b0676b45c..1f698b4e1 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2014 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as