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
{{ message }}
This repository has been archived by the owner on May 11, 2021. It is now read-only.
We have several multi-tennant sites and currently we're doing something pretty awkward with waffle where we postfix the site like (feature_video_sg, feature_video_nz) and then do an awkward lookup.
The text was updated successfully, but these errors were encountered:
You should be able to create a ConditionSet based on RequestConditionSet that does this.
See IPAddressConditionSet for a sample implementation that looks at the IP of the request - you could easily adapt it to look at request.get_current_site(). IPAddressConditionSetTests are also a pretty good guide on how to test.
If you start and open a PR I'll help with code review and completing anything that turns out to be difficult. Of course you can implement it in your own project's code base right now if you need it right now :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We have several multi-tennant sites and currently we're doing something pretty awkward with waffle where we postfix the site like (
feature_video_sg
,feature_video_nz
) and then do an awkward lookup.The text was updated successfully, but these errors were encountered: