diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-11-17 17:42:01 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-11-17 17:42:01 +0100 |
commit | 93a8d035e4e9ff0952998eb63234fee62c4ad1f5 (patch) | |
tree | 8e51bc24507de69798edefaeda3b8514ed6dc5d9 /archaeological_finds/forms.py | |
parent | 3c59a7d52ca1e8950a400faef36cd7247e5fb34d (diff) | |
download | Ishtar-93a8d035e4e9ff0952998eb63234fee62c4ad1f5.tar.bz2 Ishtar-93a8d035e4e9ff0952998eb63234fee62c4ad1f5.zip |
Archaeological finds: add a "checked" field (refs #2947)
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 7660eaacb..975772bac 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -71,6 +71,7 @@ class FindForm(forms.Form): weight = FloatField(label=_(u"Weight (g)"), required=False) find_number = forms.IntegerField(label=_(u"Find number"), required=False) mark = forms.CharField(label=_("Mark"), required=False) + checked = forms.ChoiceField(label=_("Check")) comment = forms.CharField(label=_("Comment"), required=False, widget=forms.Textarea) dating_comment = forms.CharField( @@ -85,6 +86,7 @@ class FindForm(forms.Form): def __init__(self, *args, **kwargs): super(FindForm, self).__init__(*args, **kwargs) + self.fields['checked'].choices = models.CHECK_CHOICES self.fields['material_type'].choices = models.MaterialType.get_types() self.fields['material_type'].help_text = models.MaterialType.get_help() self.fields['conservatory_state'].choices = \ |