summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-05 15:06:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-05 15:06:12 +0100
commit2ea08e20ee52f2d6df08460536cd95224a7ae07d (patch)
treecacfd44d18db9263030377d95868122625ad0ada /ishtar_common/forms_common.py
parentcdfdea70ba35aa9b1d02a93896eadcdb733fdabd (diff)
parent7c0b2e7f72308ea543b9fb15e4d25b7d9b4eddb7 (diff)
downloadIshtar-2ea08e20ee52f2d6df08460536cd95224a7ae07d.tar.bz2
Ishtar-2ea08e20ee52f2d6df08460536cd95224a7ae07d.zip
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r--ishtar_common/forms_common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index c93065fac..4edb22c18 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -731,6 +731,7 @@ class TownFormSet(FormSet):
return self.check_duplicate(('town',),
_("There are identical towns."))
+
TownFormset = formset_factory(TownForm, can_delete=True, formset=TownFormSet)
TownFormset.form_label = _("Towns")
TownFormset.form_admin_name = _(u"Towns")
@@ -864,6 +865,9 @@ class MergeOrganizationForm(MergeForm):
######################
class SourceForm(CustomForm, ManageOldType, forms.Form):
form_label = _(u"Documentation informations")
+ form_admin_name = _("Source - General")
+ form_slug = "source-general"
+
file_upload = True
associated_models = {'source_type': models.SourceType}
title = forms.CharField(label=_(u"Title"),