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
commit3bf841c2a36981417115fa4168e5565b53fa29ff (patch)
treeccb7d4f888d146d91bb1978f5fd0409618ab336e /archaeological_operations
parent59b12521a4b8bf99f64cc6275b017c50087b243f (diff)
downloadIshtar-3bf841c2a36981417115fa4168e5565b53fa29ff.tar.bz2
Ishtar-3bf841c2a36981417115fa4168e5565b53fa29ff.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