From 26fdf0452dbedd5c10e0d2cb6d34e66abd83b413 Mon Sep 17 00:00:00 2001 From: Timmy O'Mahony Date: Fri, 30 Jul 2021 20:06:26 +0100 Subject: [PATCH] Fixed deprecation --- pagedown/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pagedown/__init__.py b/pagedown/__init__.py index df90b2d..4abd7df 100644 --- a/pagedown/__init__.py +++ b/pagedown/__init__.py @@ -1,3 +1,6 @@ +import django + VERSION = ('2', '2', '0') -default_app_config = 'pagedown.apps.PagedownConfig' +if django.VERSION < (3, 2): + default_app_config = 'pagedown.apps.PagedownConfig'