mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Moved migration for update from #1666 and fixed tenant enumeration in FilterForm
This commit is contained in:
parent
9293e88574
commit
8b05dbcead
@ -410,7 +410,7 @@ class RackReservationFilterForm(BootstrapMixin, forms.Form):
|
|||||||
null_option=(0, 'None')
|
null_option=(0, 'None')
|
||||||
)
|
)
|
||||||
tenant = FilterChoiceField(
|
tenant = FilterChoiceField(
|
||||||
queryset=Tenant.objects.annotate(filter_count=Count('racks__reservations')),
|
queryset=Tenant.objects.annotate(filter_count=Count('rackreservations')),
|
||||||
to_field_name='slug',
|
to_field_name='slug',
|
||||||
null_option=(0, 'None')
|
null_option=(0, 'None')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user