Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rack name field to RackFilter #3188

Closed
wants to merge 1 commit into from
Closed

Add rack name field to RackFilter #3188

wants to merge 1 commit into from

Conversation

BlessJah
Copy link

Thanks to additional field it is now possible to select arbitrary racks
for display e.g. in Rack Elevations view.

Fixes:

#3187

Thanks to additional field it is now possible to select arbitrary racks
for display e.g. in Rack Elevations view.
@@ -128,6 +128,12 @@ class RackFilter(TenancyFilterSet, CustomFieldFilterSet):
queryset=Site.objects.all(),
label='Site (ID)',
)
rack = django_filters.ModelMultipleChoiceFilter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make sense. The filterset is already being applied to the Rack model; the filter would just match on name. Support for multiple values was introduced in #3038 and will be available in v2.6.0.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI on v2.6-beta1 (d2c66d0baf91) doesn't seem to allow arbitrary rack selection. Changes from #3038 still need to surface to interface somehow.

I'm all ears for better way of achieving this.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants