Browse Source

Corrected PrefixFilterForm

Jeremy Stretch 8 years ago
parent
commit
6ccc6244dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/ipam/forms.py

+ 1 - 1
netbox/ipam/forms.py

@@ -273,7 +273,7 @@ class PrefixFilterForm(BootstrapMixin, CustomFieldFilterForm):
         'placeholder': 'Network',
         'placeholder': 'Network',
     }))
     }))
     family = forms.ChoiceField(required=False, choices=IP_FAMILY_CHOICES, label='Address Family')
     family = forms.ChoiceField(required=False, choices=IP_FAMILY_CHOICES, label='Address Family')
-    vrf = FilterChoiceField(queryset=VRF.objects.annotate(filter_count=Count('prefixes')), to_field_name='slug',
+    vrf = FilterChoiceField(queryset=VRF.objects.annotate(filter_count=Count('prefixes')), to_field_name='rd',
                             label='VRF', null_option=(0, 'Global'))
                             label='VRF', null_option=(0, 'Global'))
     tenant = FilterChoiceField(queryset=Tenant.objects.annotate(filter_count=Count('prefixes')), to_field_name='slug',
     tenant = FilterChoiceField(queryset=Tenant.objects.annotate(filter_count=Count('prefixes')), to_field_name='slug',
                                null_option=(0, 'None'))
                                null_option=(0, 'None'))