﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10153	'gte'  missing in  get_db_prep_lookup lookup	gatwanagu	Andy Durdin	"When using a field lookup 
{{{
(unit__gte=3)
}}}
 there is an error ""Related Field has invalid lookup: ..."" raised, when using the field lookup 
{{{
(unit__gt=3)
}}}
 it works fine. 

Reason is that in db/models/fields/related.py in the function get_db_prep_lookup the lookup_type is cross checked against a list, and in this list 'gte' is missing.

Inserting 'gte' (and 'lte' to keep it synced) fixes the problem. There is a FIXME about this checking.

I don't understand what is the big difference in handling 'gt' to 'gte' and why 'gte' and 'lte' can't be inserted

Thanks

Günter "		closed	Database layer (models, ORM)	1.0		fixed	queryset field lookup		Ready for checkin	1	0	0	0	0	0
