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
It's not possible to frame all logic within filter_exclude and therefore, we should probably introduce a companion.
These filters are quite important for systems that need extra guarantees. There are cases where the set of notified users can fluctuate and inaccuracies can produce small leaks of information to the wrong users. This could be for instance if the consent is stored in another database table that needs to be queried.
Another way to use these filters is to have a dynamic set of subscribers. I.e. you can express "anyone who is currently a superuser" through filter_include={"settings__user__is_superuser": True}
It's not possible to frame all logic within
filter_exclude
and therefore, we should probably introduce a companion.These filters are quite important for systems that need extra guarantees. There are cases where the set of notified users can fluctuate and inaccuracies can produce small leaks of information to the wrong users. This could be for instance if the consent is stored in another database table that needs to be queried.
Another way to use these filters is to have a dynamic set of subscribers. I.e. you can express "anyone who is currently a superuser" through
filter_include={"settings__user__is_superuser": True}
django-nyt/django_nyt/utils.py
Lines 14 to 60 in 86eafab
The text was updated successfully, but these errors were encountered: