Skip to content

Commit

Permalink
[change] Honor renaming of openwisp_utils metric collection sub app
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Apr 22, 2024
1 parent 42b878c commit 626deab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
# (must be loaded here)
'openwisp_utils.admin_theme',
{% if openwisp2_usage_metric_collection is not false %}
'openwisp_utils.measurements',
'openwisp_utils.metric_collection',
{% endif %}
'admin_auto_filters',
# admin
Expand Down Expand Up @@ -323,7 +323,7 @@
{% endif %}
{% if openwisp2_usage_metric_collection is not false and openwisp2_usage_metric_collection_periodic_tasks %}
'send_usage_metrics': {
'task': 'openwisp_utils.measurements.tasks.send_usage_metrics',
'task': 'openwisp_utils.metric_collection.tasks.send_usage_metrics',
'schedule': timedelta(days=1),
},
{% endif %}
Expand Down Expand Up @@ -567,4 +567,4 @@
CORS_ALLOWED_ORIGINS = {{ openwisp2_django_cors.get('allowed_origins_list', []) }}
{% endif %}

TEST_RUNNER = 'openwisp_utils.measurements.tests.runner.MockRequestPostRunner'
TEST_RUNNER = 'openwisp_utils.metric_collection.tests.runner.MockRequestPostRunner'

0 comments on commit 626deab

Please sign in to comment.