Skip to content

Commit

Permalink
remove apijson filter
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoland committed Mar 8, 2017
1 parent 0d37a66 commit 863345b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pyramid_restful/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,3 @@ def parse_query_string(self, params):
"""

return params


class JSONAPIFilter(FieldFilter):
"""
Implements filtering based on the JSON API recommended query string style.
"""

def parse_query_string(self, params):
"""
Expected filter query strings look like: filter[<field_name>].
Pyramid takes care of decoding the percent encoded brackets.
"""
results = {}

for key, val in params:
if key[0:7] == 'filter[' and key[-1] == ']':
results[key[7:-1]] = val

return results

0 comments on commit 863345b

Please sign in to comment.