mik3y / django-db-multitenant

A simple multi-tenancy solution for Django apps.
Other
155 stars 34 forks source link

Remove line that sets KEY_PREFIX inside of update_cache_from_env. #27

Open crolfe opened 5 years ago

crolfe commented 5 years ago

KEY_PREFIX is currently only set/overidden in the update_cache_from_env helper function (but not in middleware.py), which would makes it possible to write to a key (e.g. in a management command) that we can never read from (e.g. in a web request).