summaryrefslogtreecommitdiffstats
path: root/testing/py-django-oscar/0001-Add-required-fields-attributes.patch
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-06-17 15:16:02 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-06-17 15:43:23 +0300
commit4597550d629aa997ba377283134ee546ae085fd0 (patch)
treeef7b1b780a274887e57db32cd3966c82370c7403 /testing/py-django-oscar/0001-Add-required-fields-attributes.patch
parent299fc3215a012915d6f4e614219277cd64845323 (diff)
downloadaports-4597550d629aa997ba377283134ee546ae085fd0.tar.bz2
aports-4597550d629aa997ba377283134ee546ae085fd0.tar.xz
testing/py-django-oscar: upgrade to 1.0.2
include patch for Django 1.8 compatibility
Diffstat (limited to 'testing/py-django-oscar/0001-Add-required-fields-attributes.patch')
-rw-r--r--testing/py-django-oscar/0001-Add-required-fields-attributes.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/py-django-oscar/0001-Add-required-fields-attributes.patch b/testing/py-django-oscar/0001-Add-required-fields-attributes.patch
new file mode 100644
index 000000000..363042cb1
--- /dev/null
+++ b/testing/py-django-oscar/0001-Add-required-fields-attributes.patch
@@ -0,0 +1,45 @@
+From ecf15acff28361b8f194f5232204792d915474fc Mon Sep 17 00:00:00 2001
+From: Arthur Case <arthur@studio-automatique.com>
+Date: Tue, 9 Jun 2015 17:07:13 +0800
+Subject: [PATCH] Add required fields attributes
+
+Some dashboard.promotions views were missing a fields attribute. For Django 1.8 compatibilty.
+---
+ src/oscar/apps/dashboard/promotions/views.py | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/oscar/apps/dashboard/promotions/views.py b/src/oscar/apps/dashboard/promotions/views.py
+index a9bc2f1..45005b0 100644
+--- a/src/oscar/apps/dashboard/promotions/views.py
++++ b/src/oscar/apps/dashboard/promotions/views.py
+@@ -174,6 +174,8 @@ class CreateMultiImageView(CreateView):
+
+ class CreateAutomaticProductListView(CreateView):
+ model = AutomaticProductList
++ fields = ['name', 'description', 'link_url', 'link_text', 'method',
++ 'num_products']
+
+
+ class CreateHandPickedProductListView(CreateView):
+@@ -279,14 +281,18 @@ class UpdateSingleProductView(UpdateView):
+
+ class UpdateImageView(UpdateView):
+ model = Image
++ fields = ['name', 'link_url', 'image']
+
+
+ class UpdateMultiImageView(UpdateView):
+ model = MultiImage
++ fields = ['name', 'images']
+
+
+ class UpdateAutomaticProductListView(UpdateView):
+ model = AutomaticProductList
++ fields = ['name', 'description', 'link_url', 'link_text', 'method',
++ 'num_products']
+
+
+ class UpdateHandPickedProductListView(UpdateView):
+--
+2.1.0
+