From 979e88a68588a6f04f16cc639ec9f5ebe1d49ec6 Mon Sep 17 00:00:00 2001 From: kaushikaryan04 Date: Sun, 30 Jun 2024 17:04:32 +0530 Subject: [PATCH] [change] Changed the delete_old_radiusbatch_users command to use days instead of months #525 Changed the delete_old_radiusbatch_users command to take in days in argument instead of months and modified tests and tasks accordingly. Fixes #525 --- openwisp_radius/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwisp_radius/settings.py b/openwisp_radius/settings.py index b43e3306..83821c7f 100644 --- a/openwisp_radius/settings.py +++ b/openwisp_radius/settings.py @@ -45,7 +45,7 @@ def get_default_password_reset_url(urls): DEFAULT_SECRET_FORMAT = get_settings_value('DEFAULT_SECRET_FORMAT', 'NT-Password') DISABLED_SECRET_FORMATS = get_settings_value('DISABLED_SECRET_FORMATS', []) BATCH_DEFAULT_PASSWORD_LENGTH = get_settings_value('BATCH_DEFAULT_PASSWORD_LENGTH', 8) -BATCH_DELETE_EXPIRED = get_settings_value('BATCH_DELETE_EXPIRED',30 * 18) +BATCH_DELETE_EXPIRED = get_settings_value('BATCH_DELETE_EXPIRED', 30 * 18) BATCH_MAIL_SUBJECT = get_settings_value('BATCH_MAIL_SUBJECT', 'Credentials') BATCH_MAIL_SENDER = get_settings_value('BATCH_MAIL_SENDER', settings.DEFAULT_FROM_EMAIL) API_AUTHORIZE_REJECT = get_settings_value('API_AUTHORIZE_REJECT', False)