Adds Django 1.7 compat patch (Closes: #755628).
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
||||
python-django-pyscss (1.0.1-3) unstable; urgency=medium
|
||||
|
||||
* Adds Django 1.7 compat patch (Closes: #755628).
|
||||
|
||||
-- Thomas Goirand <zigo@debian.org> Mon, 08 Sep 2014 18:12:00 +0000
|
||||
|
||||
python-django-pyscss (1.0.1-2) unstable; urgency=medium
|
||||
|
||||
* Added missing build-depends: python-pil, libjs-jquery and python-django,
|
||||
|
||||
19
debian/patches/add-django-1.7-compat.patch
vendored
Normal file
19
debian/patches/add-django-1.7-compat.patch
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Description: Add Django 1.7 compat.
|
||||
Author: Thomas Goirand <zigo@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/755628
|
||||
Forwarded: no
|
||||
Last-Update: 2014-09-09
|
||||
|
||||
--- python-django-pyscss-1.0.1.orig/testproject/runtests.py
|
||||
+++ python-django-pyscss-1.0.1/testproject/runtests.py
|
||||
@@ -3,6 +3,10 @@ import os
|
||||
import sys
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.testproject.settings")
|
||||
|
||||
+import django
|
||||
+if hasattr(django, 'setup'):
|
||||
+ django.setup()
|
||||
+
|
||||
from django.test.utils import get_runner
|
||||
from django.conf import settings
|
||||
|
||||
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
@@ -0,0 +1 @@
|
||||
add-django-1.7-compat.patch
|
||||
Reference in New Issue
Block a user