From 0d17c1dcfcc7e57ebf166a6be8d27ef9f5bf9fbe Mon Sep 17 00:00:00 2001 From: s-nikhil-lilly <94434007+s-nikhil-lilly@users.noreply.github.com> Date: Tue, 25 Jan 2022 16:20:02 +0530 Subject: [PATCH 1/2] Update __init__.py Removed default_app_config django version greater than 3.2 --- django_jenkins/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django_jenkins/__init__.py b/django_jenkins/__init__.py index 5478c9ad..a875bbf3 100644 --- a/django_jenkins/__init__.py +++ b/django_jenkins/__init__.py @@ -1 +1,4 @@ -default_app_config = 'django_jenkins.apps.JenkinsConfig' +import django + +if django.VERSION < (3, 2): + default_app_config = 'drf_spectacular.apps.SpectacularConfig' From 178c5bf3336af6fc2a67d4a17b4ee0f3dc64504c Mon Sep 17 00:00:00 2001 From: s-nikhil-lilly <94434007+s-nikhil-lilly@users.noreply.github.com> Date: Tue, 25 Jan 2022 16:33:43 +0530 Subject: [PATCH 2/2] Update __init__.py --- django_jenkins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_jenkins/__init__.py b/django_jenkins/__init__.py index a875bbf3..1c620967 100644 --- a/django_jenkins/__init__.py +++ b/django_jenkins/__init__.py @@ -1,4 +1,4 @@ import django if django.VERSION < (3, 2): - default_app_config = 'drf_spectacular.apps.SpectacularConfig' + default_app_config = 'django_jenkins.apps.JenkinsConfig'