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

Avoid importing django.test in main code #335

Merged
merged 1 commit into from
May 7, 2024

Conversation

angusholder
Copy link
Contributor

@angusholder angusholder commented Apr 26, 2024

setting_changed is actually from django.core.signals, and is re-exported from django.test.signals.

django.test takes 20-40ms to import, so not too much, but it's an easy win to avoid this import.

`setting_changed` is actually from `django.core.signals`, and is re-exported from `django.test.signals`. `django.test` takes 20-40ms to import, so not too much, but it's an easy win to avoid this import.
@giovannicimolin
Copy link
Contributor

@angusholder Thanks for your contribution!

That's a nice catch! I can accept that right away.

Copy link
Contributor

@giovannicimolin giovannicimolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Looks good!
Tests are passing and this is a good and simple import fix.

@giovannicimolin giovannicimolin merged commit 88de7b4 into jazzband:develop May 7, 2024
8 checks passed
@angusholder angusholder deleted the patch-1 branch May 7, 2024 14:52
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.

2 participants