Open farialima opened 2 years ago
Hey François,
sorry for the very very late response. Would you mind submitting a pull request with the necessary changes to support a database selection out of the box?
Thanks, Jens
I've started to implement on, it's not finished -- and I won't have time to put more effort on it. But maybe someone will finish it ?
Description
I use multiple databases in my app -- and Django-scrubber only scrubs the default one.
What I Did
My app uses 3 DBs, with the same models, for different customers, so my settings (in dev -- copied from prod) have this:
I'd like to scrub the 3 customer DBs, but Django-scrubber doesn't let me do that. It would be nice to have a
--database <db>
option, or--all-databases
A workaround is to add this in my
manage.py
'smain()
functionthen I execute:
./manage.py scrub_data --database customer1
, etc.it's working well, but it's a little ugly... would be nicer to have a clean support in django-scrubber :)