You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a common issue with the library and we want to make it easier to use dynamic querysets in a "v2" of the library.
If it is just user dependent, you can use a middleware helper or library (https://github.com/AlexCLeduc/django-data-fetcher) to get the current request. Then in the get_items method, create your subset of schools based on the request.user. No need to create the subset in the View.
In the current code
get_items
comes from a (deprecated) static method.I want to populate the get_items with a subset (
self.schools
).The subset is created in the View and user dependent
Any ideas?
The text was updated successfully, but these errors were encountered: