Moved migration for update from #1666 and fixed tenant enumeration in FilterForm

This commit is contained in:
Nicholas Totsch 2017-10-31 14:28:33 -05:00
parent 9293e88574
commit 8b05dbcead
2 changed files with 1 additions and 1 deletions

View File

@ -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')
) )