fix flake8

This commit is contained in:
Stefan Wojcik 2017-02-07 23:51:38 -08:00
parent 6ac7a8eec6
commit fba4477dd8

View File

@ -1745,7 +1745,6 @@ class BaseQuerySet(object):
raise err raise err
return ret return ret
def _get_order_by(self, keys): def _get_order_by(self, keys):
"""Given a list of MongoEngine-style sort keys, return a list """Given a list of MongoEngine-style sort keys, return a list
of sorting tuples that can be applied to a PyMongo cursor. For of sorting tuples that can be applied to a PyMongo cursor. For
@ -1886,7 +1885,7 @@ class BaseQuerySet(object):
# Find the requested method on the cursor and call it with the # Find the requested method on the cursor and call it with the
# provided value # provided value
method = getattr(cursor, method_name)(val) getattr(cursor, method_name)(val)
# Cache the value on the queryset._{method_name} # Cache the value on the queryset._{method_name}
setattr(queryset, '_' + method_name, val) setattr(queryset, '_' + method_name, val)