From 047fb8c6719e5a11a854f274e5a931cf825e1830 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 3 Mar 2017 10:44:07 -0500 Subject: [PATCH] Fixes #937: Region assignment should be optional when creating a site --- netbox/dcim/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 1bcaa7a63..6c0dbc234 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -82,7 +82,7 @@ class RegionForm(BootstrapMixin, forms.ModelForm): # class SiteForm(BootstrapMixin, CustomFieldForm): - region = TreeNodeChoiceField(queryset=Region.objects.all()) + region = TreeNodeChoiceField(queryset=Region.objects.all(), required=False) slug = SlugField() comments = CommentField()