Open mubarak117136 opened 4 years ago
Hi,
Not trivially. I think you'd need to punch through a few layers and configure a GET param in the url of the embed so your modeladmin could change the queryset.
Off the top of my head, you'd probably need to override widget
on the InstanceSelectorBlock
subclass, and provide your own InstanceSelectorWidget
subclass that appends a param to the embed's url.
This seems like a pretty reasonable use-case. If you get it working, it'd be great if you could either paste some code here or even open a PR.
hi, i am trouble with a issue where i must need to use queryset in InstanceSelectorBlock.
Is there any way to initialize InstanceSelectorBlock with queryset.
thanks