Hello community,
here is the log from the commit of package python-social-auth-app-django for
openSUSE:Factory checked in at 2019-04-11 12:17:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-social-auth-app-django (Old)
and /work/SRC/openSUSE:Factory/.python-social-auth-app-django.new.27019
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-social-auth-app-django"
Thu Apr 11 12:17:39 2019 rev:3 rq:693002 version:3.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-social-auth-app-django/python-social-auth-app-django.changes
2018-12-03 10:12:40.215582379 +0100
+++
/work/SRC/openSUSE:Factory/.python-social-auth-app-django.new.27019/python-social-auth-app-django.changes
2019-04-11 12:17:42.228947645 +0200
@@ -1,0 +2,5 @@
+Wed Apr 10 13:42:21 UTC 2019 - John Vandenberg <[email protected]>
+
+- Add pr_197.patch to fix bug with Django 2.2
+
+-------------------------------------------------------------------
New:
----
pr_197.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-social-auth-app-django.spec ++++++
--- /var/tmp/diff_new_pack.6Qw5F9/_old 2019-04-11 12:17:42.892947980 +0200
+++ /var/tmp/diff_new_pack.6Qw5F9/_new 2019-04-11 12:17:42.896947982 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-social-auth-app-django
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
Group: Development/Languages/Python
URL: https://github.com/python-social-auth/social-app-django
Source:
https://files.pythonhosted.org/packages/source/s/social-auth-app-django/social-auth-app-django-%{version}.tar.gz
+Patch0:
https://github.com/python-social-auth/social-app-django/commit/f8d674d.patch#/pr_197.patch
BuildRequires: %{python_module Django >= 1.11}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools}
@@ -45,6 +46,7 @@
%prep
%setup -q -n social-auth-app-django-%{version}
+%patch0 -p1
%build
%python_build
++++++ pr_197.patch ++++++
>From f8d674d9ac2da7683ff902a58d514ea5d1eb5b7b Mon Sep 17 00:00:00 2001
From: John Vandenberg <[email protected]>
Date: Wed, 10 Apr 2019 20:08:38 +0700
Subject: [PATCH] Fix render_html on Django 2.2
Update render_html to also catch TypeError.
Fixes https://github.com/python-social-auth/social-app-django/issues/196
---
social_django/strategy.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/social_django/strategy.py b/social_django/strategy.py
index 1a3a820a..b706afb4 100644
--- a/social_django/strategy.py
+++ b/social_django/strategy.py
@@ -97,7 +97,7 @@ def render_html(self, tpl=None, html=None, context=None):
try:
template = loader.get_template(tpl)
return template.render(context=context, request=self.request)
- except TemplateDoesNotExist:
+ except (TypeError, TemplateDoesNotExist):
return render_template_string(self.request, html, context)
def authenticate(self, backend, *args, **kwargs):