1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #695: Added is_private field to RIR

This commit is contained in:
Jeremy Stretch
2016-12-06 13:59:13 -05:00
parent 6e5950be77
commit f007b0dbde
10 changed files with 66 additions and 16 deletions

View File

@ -75,7 +75,15 @@ class RIRForm(forms.ModelForm, BootstrapMixin):
class Meta:
model = RIR
fields = ['name', 'slug']
fields = ['name', 'slug', 'is_private']
class RIRFilterForm(forms.Form, BootstrapMixin):
is_private = forms.NullBooleanField(required=False, label='Private', widget=forms.Select(choices=[
('', '---------'),
('True', 'Yes'),
('False', 'No'),
]))
#