diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-08-04 23:32:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-08-04 23:32:09 +0200 |
commit | 6aa00adfac33c9b21208332bd1e29df9d5882f3e (patch) | |
tree | 9ded4e826a7dcce3577fb28c9e652c1971b9870f /ishtar/ishtar_base/forms_operations.py | |
parent | 861999ff77ff11aedc73a83aa084f03d723e720b (diff) | |
download | Ishtar-6aa00adfac33c9b21208332bd1e29df9d5882f3e.tar.bz2 Ishtar-6aa00adfac33c9b21208332bd1e29df9d5882f3e.zip |
Closing an archaeological file (closes #558)
Diffstat (limited to 'ishtar/ishtar_base/forms_operations.py')
-rw-r--r-- | ishtar/ishtar_base/forms_operations.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ishtar/ishtar_base/forms_operations.py b/ishtar/ishtar_base/forms_operations.py index 30fc11bec..3227e8d84 100644 --- a/ishtar/ishtar_base/forms_operations.py +++ b/ishtar/ishtar_base/forms_operations.py @@ -35,7 +35,8 @@ from ishtar import settings import models import widgets from forms import Wizard, FinalForm, FormSet, SearchWizard, ClosingWizard, \ - DeletionWizard, formset_factory, get_now, reverse_lazy, get_form_selection + ClosingDateFormSelection, DeletionWizard, formset_factory, get_now, \ + reverse_lazy, get_form_selection from forms_common import TownForm, TownFormSet, TownFormset, ParcelFormSet, \ ParcelForm, AuthorFormset, SourceForm, SourceWizard, SourceSelect, \ SourceDeletionForm, get_town_field @@ -479,11 +480,6 @@ operation_modification_wizard = OperationWizard([ }, url_name='operation_modification',) -class OperationDateFormSelection(forms.Form): - form_label = _("Closing date") - end_date = forms.DateField(label=_(u"Closing date"), - widget=widgets.JQueryDate) - class OperationClosingWizard(ClosingWizard): model = models.Operation fields = ['year', 'operation_code', 'operation_type', 'associated_file', @@ -495,7 +491,7 @@ class FinalOperationClosingForm(FinalForm): operation_closing_wizard = OperationClosingWizard([ ('selec-operation_closing', OperationFormSelection), - ('date-operation_closing', OperationDateFormSelection), + ('date-operation_closing', ClosingDateFormSelection), ('final-operation_closing', FinalOperationClosingForm)], url_name='operation_closing',) |