diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-25 10:47:45 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-01-25 10:47:53 +0100 |
commit | 901bd6cb3b14fc5aa9e2f445ad5f4a81a29b9424 (patch) | |
tree | d66ec98a1a34ed663bd8cf019abccf348ed461a7 /accounts/views.py | |
parent | edit terms + change log for new version (diff) | |
download | scout-subs-901bd6cb3b14fc5aa9e2f445ad5f4a81a29b9424.tar.gz scout-subs-901bd6cb3b14fc5aa9e2f445ad5f4a81a29b9424.zip |
suppress deprecation warning
Diffstat (limited to 'accounts/views.py')
-rw-r--r-- | accounts/views.py | 7 |
1 files changed, 7 insertions, 0 deletions
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"] |