Package: python-django-uuidfield / 0.5.0-2

django-1_7-compatibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Subject: fix Django 1.7 compatibility issues
Author: Raphael Hertzog <hertzog@debian.org>
Author: Jan Dittberner <jandd@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755639
--- a/runtests.py
+++ b/runtests.py
@@ -18,11 +18,15 @@
             'uuidfield',
             'uuidfield.tests',
         ],
+        MIDDLEWARE_CLASSES=[],
         ROOT_URLCONF='',
         DEBUG=False,
     )
 
 from django_nose import NoseTestSuiteRunner
+import django
+if hasattr(django, 'setup'):
+    django.setup()
 
 
 def runtests(*test_args, **kwargs):
--- a/runtests_sqlite.py
+++ b/runtests_sqlite.py
@@ -18,6 +18,7 @@
             'uuidfield',
             'uuidfield.tests',
         ],
+        MIDDLEWARE_CLASSES=[],
         ROOT_URLCONF='',
         DEBUG=False,
     )