Skip to content

Commit

Permalink
Create IncludeFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jul 29, 2019
1 parent a0b18a8 commit 7e855ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ def apply_filter(self, query):
query.is_limited = True


class IncludeFilter(QueryFilter):
def __init__(self, included_filters):
self.included_filters = included_filters

def apply_filter(self, query):
query.include_related_entities = True


def insert_row_into_table(row):
"""
Insert the given row into its table
Expand Down

0 comments on commit 7e855ce

Please sign in to comment.