Suppress locale.getdefaultlocale warning in project template test

It comes from l18n
pull/12589/head
Sage Abdullah 2024-11-12 13:37:45 +00:00 zatwierdzone przez Matt Westcott
rodzic 9e843af55a
commit 9b8015bb5f
1 zmienionych plików z 5 dodań i 1 usunięć
.github/workflows

Wyświetl plik

@ -160,9 +160,13 @@ jobs:
run: |
wagtail start testproject
cd testproject
# Remove when all experimental jobs use Django >= 6.0
tee -a testproject/settings/local.py << EOF
from warnings import filterwarnings
# Remove when l18n dependency is updated or removed
filterwarnings(
"ignore", "'locale.getdefaultlocale' is deprecated .*"
)
# Remove when all experimental jobs use Django >= 6.0
filterwarnings(
"ignore", "The FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated."
)