def get_date_greater_query(days, date_field):
query = None<EOL>days = get_integer(days)<EOL>if days:<EOL><INDENT>past = get_days_ago(days)<EOL>query = Q(**{"<STR_LIT>" % date_field: past.isoformat()})<EOL><DEDENT>return query<EOL>
Query for if date_field is within number of "days" ago.