Commit 0513e9d1 authored by Serge S. Koval's avatar Serge S. Koval

Fixed #222

parent fc06ece1
......@@ -179,7 +179,7 @@ class ModelView(BaseModelView):
if len(data) == 1:
query = data[0]
else:
query['$AND'] = data
query['$and'] = data
# Search
if self._search_supported and search:
......@@ -249,7 +249,6 @@ class ModelView(BaseModelView):
except InvalidId:
return id
def get_one(self, id):
"""
Return single model instance by ID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment