def _filter_by_simple_schema(self, qs, lookup, sublookup, value, schema):
value_lookup = '<STR_LIT>' % schema.datatype<EOL>if sublookup:<EOL><INDENT>value_lookup = '<STR_LIT>' % (value_lookup, sublookup)<EOL><DEDENT>return {<EOL>'<STR_LIT>': schema,<EOL>str(value_lookup): value<EOL>}<EOL>
Filters given entity queryset by an attribute which is linked to given
schema and has given value in the field for schema's datatype.