Skip to content

Commit

Permalink
Merge pull request #733 from linuxsimba/remove_mac_addr_required_from…
Browse files Browse the repository at this point in the history
…_filter

FIX: filtering devices fails because mac address filter is a required
  • Loading branch information
jeremystretch authored Dec 7, 2016
2 parents fca8129 + b4940a6 commit cc6ae8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ class DeviceFilterForm(BootstrapMixin, CustomFieldFilterForm):
platform = FilterChoiceField(queryset=Platform.objects.annotate(filter_count=Count('devices')),
to_field_name='slug', null_option=(0, 'None'))
status = forms.NullBooleanField(required=False, widget=forms.Select(choices=FORM_STATUS_CHOICES))
mac_address = forms.CharField(label='MAC address')
mac_address = forms.CharField(label='MAC address', required=False)


#
Expand Down

0 comments on commit cc6ae8e

Please sign in to comment.