diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-11 18:16:49 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-11 18:16:49 +0200 |
commit | 135a2370cfef4f3faea88cc6a1ab3f1eb797013d (patch) | |
tree | 1bdc68eac5c81c5bfafe287a659266ee8ad33d69 /archaeological_files/forms.py | |
parent | f7ef537f915f30ea8513c18f43d79733a5d47ac2 (diff) | |
download | Ishtar-135a2370cfef4f3faea88cc6a1ab3f1eb797013d.tar.bz2 Ishtar-135a2370cfef4f3faea88cc6a1ab3f1eb797013d.zip |
Add a name to archaelogical files (closes #628)
Diffstat (limited to 'archaeological_files/forms.py')
-rw-r--r-- | archaeological_files/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index ea12c984c..67f00c8d8 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010-2012 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2010-2013 É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 @@ -99,6 +99,7 @@ class FileFormGeneral(forms.Form): internal_reference = forms.CharField(label=_(u"Internal reference"), max_length=60, validators=[is_unique(models.File, 'internal_reference')]) + name = forms.CharField(label=_(u"Name"), required=False) creation_date = forms.DateField(label=_(u"Creation date"), initial=get_now, widget=widgets.JQueryDate) file_type = forms.ChoiceField(label=_("File type"), |