File python-django-waliki-django21-admin-tests.patch of Package python-django-waliki
From 8b8f9fca427f6221759841106fc1b17dcb9724f1 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Fri, 26 Apr 2019 23:31:26 +0100
Subject: [PATCH] Add django.contrib.admin to INSTALLED_APPS in tests.
Inner workings of admin site discovery changed in Django 2.1,
and having django.contrib.admin in INSTALLED_APPS is required
for django.contrib.admin.autosiscover() to work.
Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
runtests.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/runtests.py b/runtests.py
index 367bc9b..be41cc3 100755
--- a/runtests.py
+++ b/runtests.py
@@ -17,6 +17,7 @@ try:
},
ROOT_URLCONF="waliki.urls",
INSTALLED_APPS=(
+ "django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
--
2.20.1