From 901bd6cb3b14fc5aa9e2f445ad5f4a81a29b9424 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 25 Jan 2022 10:47:45 +0100 Subject: suppress deprecation warning --- accounts/views.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'accounts') diff --git a/accounts/views.py b/accounts/views.py index cd17552..cef575d 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -27,6 +27,13 @@ from pdf2image.exceptions import ( PDFSyntaxError ) +# suppress warning about dateparser deprecated dependencies +import warnings +warnings.filterwarnings( + "ignore", + message="The localize method is no longer necessary, as this time zone supports the fold attribute", +) + oauth = OAuth() hitobito = oauth.register(name="hitobito") api_url = settings.AUTHLIB_OAUTH_CLIENTS["hitobito"]["api_url"] -- cgit v1.2.1