-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
[change] Respect disabled organizations #552 #554
Conversation
openwisp_monitoring/device/apps.py
Outdated
@classmethod | ||
def organization_post_save_receiver(cls, instance, *args, **kwargs): | ||
if instance.is_active is False: | ||
from .tasks import organization_disabled_handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the import here necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because openwisp_monitoring.device.tasks
imports openwisp_monitoring.checks.tasks.perform_check
which in-turn imports the ContentType
model globally.
5735ef8
to
1fe816f
Compare
@@ -155,27 +155,6 @@ def test_400(self): | |||
) | |||
self.assertEqual(r.status_code, 400) | |||
|
|||
def test_200_none(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this test being removed?
Closes #552
Checks: