diff options
Diffstat (limited to 'main/py-django-oscar/0010-Syntax-improvements-sort-imports-with-isort.patch')
-rw-r--r-- | main/py-django-oscar/0010-Syntax-improvements-sort-imports-with-isort.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/main/py-django-oscar/0010-Syntax-improvements-sort-imports-with-isort.patch b/main/py-django-oscar/0010-Syntax-improvements-sort-imports-with-isort.patch new file mode 100644 index 0000000000..8e81cea3a1 --- /dev/null +++ b/main/py-django-oscar/0010-Syntax-improvements-sort-imports-with-isort.patch @@ -0,0 +1,60 @@ +From ed6b49d43870f316b099ef6076b5bd844aeb3708 Mon Sep 17 00:00:00 2001 +From: Alexander Gaevsky <sasha@sasha0.ru> +Date: Mon, 13 Feb 2017 14:48:14 +0200 +Subject: [PATCH 10/11] Syntax improvements, sort imports with isort. + +--- + src/oscar/apps/catalogue/reviews/admin.py | 1 + + src/oscar/apps/dashboard/catalogue/forms.py | 1 + + src/oscar/apps/dashboard/partners/forms.py | 1 + + src/oscar/templatetags/promotion_tags.py | 2 +- + 4 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/oscar/apps/catalogue/reviews/admin.py b/src/oscar/apps/catalogue/reviews/admin.py +index 777a0ad..cfe987f 100644 +--- a/src/oscar/apps/catalogue/reviews/admin.py ++++ b/src/oscar/apps/catalogue/reviews/admin.py +@@ -15,5 +15,6 @@ class ProductReviewAdmin(admin.ModelAdmin): + class VoteAdmin(admin.ModelAdmin): + list_display = ('review', 'user', 'delta', 'date_created') + ++ + admin.site.register(ProductReview, ProductReviewAdmin) + admin.site.register(Vote, VoteAdmin) +diff --git a/src/oscar/apps/dashboard/catalogue/forms.py b/src/oscar/apps/dashboard/catalogue/forms.py +index bc93f02..c6b28ce 100644 +--- a/src/oscar/apps/dashboard/catalogue/forms.py ++++ b/src/oscar/apps/dashboard/catalogue/forms.py +@@ -472,6 +472,7 @@ class ProductAttributesForm(forms.ModelForm): + model = ProductAttribute + fields = ["name", "code", "type", "option_group", "required"] + ++ + ProductAttributesFormSet = inlineformset_factory(ProductClass, + ProductAttribute, + form=ProductAttributesForm, +diff --git a/src/oscar/apps/dashboard/partners/forms.py b/src/oscar/apps/dashboard/partners/forms.py +index c7f5583..d0ee31d 100644 +--- a/src/oscar/apps/dashboard/partners/forms.py ++++ b/src/oscar/apps/dashboard/partners/forms.py +@@ -31,6 +31,7 @@ class PartnerCreateForm(forms.ModelForm): + model = Partner + fields = ('name',) + ++ + ROLE_CHOICES = ( + ('staff', _('Full dashboard access')), + ('limited', _('Limited dashboard access')), +diff --git a/src/oscar/templatetags/promotion_tags.py b/src/oscar/templatetags/promotion_tags.py +index 95f9df6..471d508 100644 +--- a/src/oscar/templatetags/promotion_tags.py ++++ b/src/oscar/templatetags/promotion_tags.py +@@ -1,4 +1,4 @@ +-from django.template import Library, Node, RequestContext ++from django.template import Library, RequestContext + from django.template.loader import select_template + + register = Library() +-- +2.9.4 + |