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 +++++++ version.txt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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"] diff --git a/version.txt b/version.txt index 7710394..9a16e5f 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ version=0.5 -rev=1 +rev=2 -- cgit v1.2.1