aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-oscar/0004-Add-template_name-attribute-to-RemoteSelect-widget.patch
blob: 4aa1062c44b901d63ea4ffc6451d777623f3860e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9e7b200b06b07da8c0383d3d506097e5777f6682 Mon Sep 17 00:00:00 2001
From: Michael van Tellingen <michael@mvantellingen.nl>
Date: Sat, 15 Apr 2017 08:42:47 +0200
Subject: [PATCH 4/8] Add template_name attribute to RemoteSelect widget

This fixes an exception in Django 1.11 (template based widgets)
---
 src/oscar/forms/widgets.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/oscar/forms/widgets.py b/src/oscar/forms/widgets.py
index cdeb6b9..c2a5ce7 100644
--- a/src/oscar/forms/widgets.py
+++ b/src/oscar/forms/widgets.py
@@ -304,6 +304,7 @@ class RemoteSelect(forms.Widget):
     """
     is_multiple = False
     lookup_url = None
+    template_name = None
 
     def __init__(self, *args, **kwargs):
         if 'lookup_url' in kwargs:
-- 
2.9.4