]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Added fixed-removed-TemplateDoesNotExist.patch.
authorThomas Goirand <thomas@goirand.fr>
Mon, 11 Jan 2016 03:42:53 +0000 (03:42 +0000)
committerThomas Goirand <thomas@goirand.fr>
Mon, 11 Jan 2016 03:44:07 +0000 (03:44 +0000)
Rewritten-From: 94f825869aa7a96a406841742712b2d21ff9662d

trusty/debian/changelog
trusty/debian/patches/fixed-removed-TemplateDoesNotExist.patch [new file with mode: 0644]
trusty/debian/patches/series

index d2d62e8bc8cae8364304489e0ecf011667af150c..50c874b33d77feb55c84ac781166555d29c25c38 100644 (file)
@@ -3,6 +3,7 @@ horizon (2:8.0.0-4) unstable; urgency=medium
   * Added do-not-use-django.utils.log.NullHandler.patch
   * Added do-not-use-importlib-from-django.patch.
   * Added do-not-use-django.utils.unittest.patch.
+  * Added fixed-removed-TemplateDoesNotExist.patch.
 
  -- Thomas Goirand <zigo@debian.org>  Mon, 11 Jan 2016 02:54:28 +0000
 
diff --git a/trusty/debian/patches/fixed-removed-TemplateDoesNotExist.patch b/trusty/debian/patches/fixed-removed-TemplateDoesNotExist.patch
new file mode 100644 (file)
index 0000000..de32b2b
--- /dev/null
@@ -0,0 +1,22 @@
+Description: Fixed removed TemplateDoesNotExist
+ This is removed from Django 1.9
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+Last-Update: 2016-01-11
+
+--- horizon-8.0.0.orig/horizon/loaders.py
++++ horizon-8.0.0/horizon/loaders.py
+@@ -19,7 +19,12 @@ import os
+ import django
+ from django.conf import settings
+-from django.template.base import TemplateDoesNotExist  # noqa
++
++if django.get_version() >= '1.9':
++    class TemplateDoesNotExist(Exception):
++        pass
++else:
++    from django.template.base import TemplateDoesNotExist  # noqa
+ if django.get_version() >= '1.8':
+     from django.template.engine import Engine
index fc1fc169353efcd9457e3f105f4366d7640dbd3c..4b1c8511c16e1bcc5da3094809b34a18136fecbd 100644 (file)
@@ -4,3 +4,4 @@ fixed-horizon-MANIFEST.in.patch
 do-not-use-importlib-from-django.patch
 do-not-use-django.utils.log.NullHandler.patch
 do-not-use-django.utils.unittest.patch
+fixed-removed-TemplateDoesNotExist.patch