Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pep8 fixes.

  • Loading branch information...
commit f62da50a856600913d363f090930bd7db0d1a9a2 1 parent ccc3ed7
Alex Hill authored
4 cartridge/shop/models.py
View
@@ -121,8 +121,8 @@ def get_content_models(cls):
Return all ``Product`` subclasses.
"""
is_product_subclass = lambda cls: issubclass(cls, Product)
- cmp = lambda a,b: (int(b is Product) - int(a is Product) or
- a._meta.verbose_name < b._meta.verbose_name)
+ cmp = lambda a, b: (int(b is Product) - int(a is Product) or
+ a._meta.verbose_name < b._meta.verbose_name)
return sorted(filter(is_product_subclass, models.get_models()), cmp)
def get_content_model(self):
2  cartridge/shop/templatetags/shop_tags.py
View
@@ -93,4 +93,4 @@ def models_for_products(*args):
setattr(model, "name", model._meta.verbose_name)
setattr(model, "add_url", admin_add_url)
product_models.append(model)
- return product_models
+ return product_models
Please sign in to comment.
Something went wrong with that request. Please try again.