Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor some classes/methods #325

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

atodorov
Copy link
Member

@atodorov atodorov commented Dec 8, 2019

@tomturner I've deleted some code trying to keep repetition to minimum and reuse existing code. Let's see if it works at all.

less possibilities for code to diverge over time
- use set_tenant()
- clear ContentType cache on set_tenant() like it was done in
  set_schema()
- reuse code where possible instead of duplicating it
@atodorov
Copy link
Member Author

atodorov commented Apr 8, 2020

@tomturner ping. Any update on this PR? Can I get a review please?

@tomturner tomturner merged commit cd74b26 into django-tenants:master Apr 14, 2020
@atodorov atodorov deleted the utils_refactor branch December 2, 2020 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants