Browse Source

Fix flake8 errors

master
David Winterbottom 12 years ago
parent
commit
e2bfdbfb29
2 changed files with 1 additions and 2 deletions
  1. 0
    1
      oscar/apps/catalogue/reviews/views.py
  2. 1
    1
      oscar/apps/offer/custom.py

+ 0
- 1
oscar/apps/catalogue/reviews/views.py View File

124
         context['product'] = get_object_or_404(
124
         context['product'] = get_object_or_404(
125
             self.product_model, pk=self.kwargs['product_pk'])
125
             self.product_model, pk=self.kwargs['product_pk'])
126
         return context
126
         return context
127
-

+ 1
- 1
oscar/apps/offer/custom.py View File

24
             "Custom ranges must have text names (not ugettext proxies)")
24
             "Custom ranges must have text names (not ugettext proxies)")
25
 
25
 
26
     # In Django versions further than 1.6 it will be update_or_create
26
     # In Django versions further than 1.6 it will be update_or_create
27
-    # Proof: https://docs.djangoproject.com/en/dev/ref/models/querysets/#update-or-create
27
+    # https://docs.djangoproject.com/en/dev/ref/models/querysets/#update-or-create # noqa
28
     values = {
28
     values = {
29
         'name': range_class.name,
29
         'name': range_class.name,
30
         'proxy_class': _class_path(range_class),
30
         'proxy_class': _class_path(range_class),

Loading…
Cancel
Save