diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-28 11:51:56 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-28 11:51:56 +0100 |
commit | 18fcf5804fdcd1e21ebc4811e69d0d6a89e1a393 (patch) | |
tree | 7cef5c9e06a8bd311d840fcc6e7a7521916ff504 /archaeological_operations/forms.py | |
parent | 32622951f2e0ee9a0513f3f407433a904f10486a (diff) | |
download | Ishtar-18fcf5804fdcd1e21ebc4811e69d0d6a89e1a393.tar.bz2 Ishtar-18fcf5804fdcd1e21ebc4811e69d0d6a89e1a393.zip |
Archaeological operations: add report state
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index cba230338..58bc1d3b0 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -626,6 +626,7 @@ class OperationFormGeneral(forms.Form): 'cira_rapporteur': Person, 'operator': Organization, 'operation_type': models.OperationType, + 'report_processing': models.ReportState, 'archaeological_site': models.ArchaeologicalSite} pk = forms.IntegerField(required=False, widget=forms.HiddenInput) scientist = forms.IntegerField( @@ -663,6 +664,8 @@ class OperationFormGeneral(forms.Form): report_delivery_date = forms.DateField( label=_(u"Report delivery date"), required=False, widget=widgets.JQueryDate) + report_processing = forms.ChoiceField(label=_(u"Report processing"), + choices=[], required=False) surface = forms.IntegerField( required=False, widget=widgets.AreaWidget, label=_(u"Total surface (m2)"), @@ -718,6 +721,10 @@ class OperationFormGeneral(forms.Form): models.OperationType.get_types() self.fields['operation_type'].help_text = \ models.OperationType.get_help() + self.fields['report_processing'].choices = \ + models.ReportState.get_types() + self.fields['report_processing'].help_text = \ + models.ReportState.get_help() self.fields['record_quality'].choices = \ [('', '--')] + list(models.QUALITY) # data POSTED |