'gte' missing in get_db_prep_lookup lookup
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
Component: |
Uncategorized → Database layer (models, ORM)
|
milestone: |
→ 1.1
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to kgrandis
|
Status: |
new → assigned
|
Owner: |
kgrandis removed
|
Status: |
assigned → new
|
Owner: |
changed from joelhooks to Andy Durdin
|
Status: |
new → assigned
|
Needs tests: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
added 'gte' and 'lte' to the list.