-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Use select2 for custom script ObjectVar fields #3516
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
Comments
I think one thing to look at, would also be to make all vars Select. However, for the select2 for objects, you would need "widget=APISelect", because you can filter a rack with select2, but unless you add in the widget to perform the query, the list is going to be static. |
@DanSheps I tried to use ObjectVar with our IPAddress model that had 27k+ objects in it. The page almost crashed on my laptop. The APISelect solution must be there to work the same way as it does on the filter panels on the list views. Yes the current select box works for very small data sets, but bigger ones, no wai. |
This would be extremely useful. There are workflows that, even when using filtered QuerySets, could provide several thousand or more object choices. That would be a browser killer as @Grokzen noted. |
I'm all for implementing this, but we'd need to address the issue with manually specifying the |
Could this be closed as it is a duplicate of #3766 (has more relevant information, I'd say) |
Environment
Proposed Functionality
Use select2 to enable filtering in custom script ObjectVar dropdown.
Use Case
Selecting a rack from a list of 300 racks
Database Changes
no
External Dependencies
no
The text was updated successfully, but these errors were encountered: