1. Chris Moffitt
  2. satchmo
  3. Pull requests

Pull requests

#55 Merged
Repository
Deleted repository
Branch
default (1730bf912bc1)
Repository
satchmo
Branch
default

Fix default_product_search_listener

Author
  1. zaquest
Reviewers
Description

1. Fix error when category is specified and keywords are not.

if keywords:
    ...
else:
    products = None
if category:
    products.filter(category in categories)

leads to AttributeError: NoneType object has no attribute filter

2. productkwargs is not used for almost 2 years

3.

if category:
    products.filter(category in categories)

has no effect, should be

if category:
    products = products.filter(category in categories)

Comments (0)