Skip to content
Browse files

pep8 and whitespace fixes.

  • Loading branch information...
1 parent 9e06c69 commit 75004e2b1e832b5bccff5bd39660fbac6e186961 @AlexHill committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 cartridge/shop/
7 cartridge/shop/
@@ -165,12 +165,17 @@ def __init__(self, *args, **kwargs):
adding all model fields when no fieldsets are defined on the
Admin class.
super(ProductAdmin, self).__init__(*args, **kwargs)
# Test that the fieldsets don't differ from ProductAdmin's.
- if self.model is not Product and self.fieldsets == ProductAdmin.fieldsets:
+ if (self.model is not Product and
+ self.fieldsets == ProductAdmin.fieldsets):
# Make a copy so that we aren't modifying other Admin
# classes' fieldsets.
self.fieldsets = deepcopy(self.fieldsets)
# Insert each field between the publishing fields and nav
# fields. Do so in reverse order to retain the order of
# the model's fields.

0 comments on commit 75004e2

Please sign in to comment.
Something went wrong with that request. Please try again.