Fixed GenericReferenceField query issue

This commit is contained in:
Harry Marr
2010-10-17 13:55:48 +01:00
parent d3c2dfbaee
commit 3591593ac7
3 changed files with 1 additions and 5 deletions

View File

@@ -624,9 +624,6 @@ class QuerySet(object):
# 'in', 'nin' and 'all' require a list of values
value = [field.prepare_query_value(op, v) for v in value]
if field.__class__.__name__ == 'GenericReferenceField':
parts.append('_ref')
# if op and op not in match_operators:
if op:
if op in geo_operators: