proshop_django
proshop_django copied to clipboard
Update getProducts to use a Pythonic way
Instead of using:
query = request.query_params.get('keyword') if query == None: query = ''
which is right by the way, we better use the Pythonic way of doing it:
query = request.query_params.get('keyword') or ''