From 31846f1d05b231bb2b91bc8396ca2e89363b6b4f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 29 Apr 2019 22:32:22 +0200 Subject: [PATCH] Show redirect URL in
 element

---
 passbook/admin/templates/administration/source/list.html | 2 +-
 passbook/oauth_client/models.py                          | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/passbook/admin/templates/administration/source/list.html b/passbook/admin/templates/administration/source/list.html
index b7c00ec16..0dcd5c2da 100644
--- a/passbook/admin/templates/administration/source/list.html
+++ b/passbook/admin/templates/administration/source/list.html
@@ -36,7 +36,7 @@
             
                 {{ source.name }}
                 {{ source|fieldtype }}
-                {{ source.additional_info }}
+                {{ source.additional_info|safe }}
                 
                     {% trans 'Edit' %}
diff --git a/passbook/oauth_client/models.py b/passbook/oauth_client/models.py
index 94d651ee8..99f37db42 100644
--- a/passbook/oauth_client/models.py
+++ b/passbook/oauth_client/models.py
@@ -29,14 +29,13 @@ class OAuthSource(Source):
     def get_login_button(self):
         url = reverse_lazy('passbook_oauth_client:oauth-client-login',
                            kwargs={'source_slug': self.slug})
-        # if self.provider_type == 'github':
-        #     return url, 'github-logo', _('GitHub')
         return url, self.provider_type, self.name
 
     @property
     def additional_info(self):
-        return "Callback URL: '%s'" % reverse_lazy('passbook_oauth_client:oauth-client-callback',
-                                                   kwargs={'source_slug': self.slug})
+        return "Callback URL: 
%s
" % \ + reverse_lazy('passbook_oauth_client:oauth-client-callback', + kwargs={'source_slug': self.slug}) def has_user_settings(self): """Entrypoint to integrate with User settings. Can either return False if no