Opened 11 years ago

Closed 11 years ago

#19521 closed Bug (invalid)

Querying <field_name>__day__gte (or any other comparison) not allowed

Reported by: batment@… Owned by: nobody
Component: Database layer (models, ORM) Version: 1.4
Severity: Normal Keywords: queryset
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Filter on field_namedaygte returns "FieldError: Join on field 'field_name' not permitted. Did you misspell 'day' for the lookup type?"

Change History (1)

comment:1 by Aymeric Augustin, 11 years ago

Resolution: invalid
Status: newclosed

__day is a lookup, and you cannot chain lookups.

Note: See TracTickets for help on using tickets.
Back to Top