Fixes #937: Region assignment should be optional when creating a site

This commit is contained in:
Jeremy Stretch 2017-03-03 10:44:07 -05:00
parent ac47fba481
commit 047fb8c671

View File

@ -82,7 +82,7 @@ class RegionForm(BootstrapMixin, forms.ModelForm):
# #
class SiteForm(BootstrapMixin, CustomFieldForm): class SiteForm(BootstrapMixin, CustomFieldForm):
region = TreeNodeChoiceField(queryset=Region.objects.all()) region = TreeNodeChoiceField(queryset=Region.objects.all(), required=False)
slug = SlugField() slug = SlugField()
comments = CommentField() comments = CommentField()