* Added django.template.base.library-moved.patch.
* Added fix-request.REQUEST-does-not-exist.patch.
* Added remove-load-url-from-future.patch.
+ * Added fix-assertRedirects-no-longer-forced-absolute-URLs.patch.
-- Thomas Goirand <zigo@debian.org> Mon, 11 Jan 2016 02:54:28 +0000
--- /dev/null
+Description: Fix assertRedirects no longer forced absolute URLs
+ As per:
+ https://docs.djangoproject.com/en/1.9/releases/1.9/#http-redirects-no-longer-forced-to-absolute-uris
+ Django 1.9 no longer forces absolute URIs.
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+Last-Update: 2016-01-11
+
+--- horizon-8.0.0.orig/openstack_dashboard/test/helpers.py
++++ horizon-8.0.0/openstack_dashboard/test/helpers.py
+@@ -25,6 +25,7 @@ import os
+
+ from ceilometerclient.v2 import client as ceilometer_client
+ from cinderclient import client as cinder_client
++import django
+ from django.conf import settings
+ from django.contrib.messages.storage import default_storage # noqa
+ from django.core.handlers import wsgi
+@@ -227,8 +228,12 @@ class TestCase(horizon_helpers.TestCase)
+ Asserts that the given response issued a 302 redirect without
+ processing the view which is redirected to.
+ """
+- self.assertEqual(response._headers.get('location', None),
+- ('Location', settings.TESTSERVER + expected_url))
++ if django.get_version() >= '1.9':
++ self.assertEqual(response._headers.get('location', None),
++ ('Location', expected_url))
++ else:
++ self.assertEqual(response._headers.get('location', None),
++ ('Location', settings.TESTSERVER + expected_url))
+ self.assertEqual(response.status_code, 302)
+
+ def assertNoFormErrors(self, response, context_name="form"):