diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-07 17:20:18 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-07 17:20:18 +0100 |
commit | c095ce33a5233176f0a8d46d146e1f6902f0ca58 (patch) | |
tree | 9ced1fb99aa3f63bfb3440320117e88613f3c1b7 /archaeological_finds/forms.py | |
parent | eed8e7aad548399c214843350bae472353738f9a (diff) | |
download | Ishtar-c095ce33a5233176f0a8d46d146e1f6902f0ca58.tar.bz2 Ishtar-c095ce33a5233176f0a8d46d146e1f6902f0ca58.zip |
Finds: deletion (refs #2812)
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 83a9e2da3..3cfe13ea9 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -36,7 +36,7 @@ import models from ishtar_common import widgets from ishtar_common.forms import FormSet, FloatField, \ - get_form_selection, reverse_lazy, TableSelect, get_now + get_form_selection, reverse_lazy, TableSelect, get_now, FinalForm from ishtar_common.forms_common import get_town_field, SourceSelect @@ -314,6 +314,11 @@ ResultFindFormSet = formset_factory(ResultFindForm, can_delete=True, ResultFindFormSet.form_label = _(u"Resulting finds") +class FindDeletionForm(FinalForm): + confirm_msg = " " + confirm_end_msg = _(u"Would you like to delete this find?") + + class UpstreamFindFormSelection(FindFormSelection): form_label = _(u"Upstream find") |