From 438aa463d5ae6f923efa77d2e7e4a8211fb36927 Mon Sep 17 00:00:00 2001 From: TVo Date: Wed, 9 Apr 2025 06:22:01 -0700 Subject: [PATCH] Remove L10N deprecation exception (#15925) * Remove L10N deprecation exception * Remove L10N from default settings file. --- awx/settings/defaults.py | 4 ---- pytest.ini | 3 --- 2 files changed, 7 deletions(-) diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index 84f9995bc4..d2e5ba4839 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -80,10 +80,6 @@ LANGUAGE_CODE = 'en-us' # to load the internationalization machinery. USE_I18N = True -# If you set this to False, Django will not format dates, numbers and -# calendars according to the current locale -USE_L10N = True - USE_TZ = True STATICFILES_DIRS = [ diff --git a/pytest.ini b/pytest.ini index c52dce713c..37325c4c70 100644 --- a/pytest.ini +++ b/pytest.ini @@ -29,9 +29,6 @@ filterwarnings = # FIXME: Set `USE_TZ` to `True`. once:The default value of USE_TZ will change from False to True in Django 5.0. Set USE_TZ to False in your project settings if you want to keep the current default behavior.:django.utils.deprecation.RemovedInDjango50Warning:django.conf - # FIXME: Delete this entry once `USE_L10N` use is removed. - once:The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.:django.utils.deprecation.RemovedInDjango50Warning:django.conf - # FIXME: Delete this entry once `pyparsing` is updated. once:module 'sre_constants' is deprecated:DeprecationWarning:_pytest.assertion.rewrite