Opened 8 years ago

Closed 8 years ago

#27962 closed New feature (fixed)

allow lookups on Area annotation

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

From this thread: https://groups.google.com/forum/#!topic/geodjango/PO_O6ZTkads

filtered_qset = GeoModel.objects.annotate(area=Area('geom')).filter(area__gt=1)
This gives an error like "AttributeError: 'AreaField' object has no attribute 'get_lookup".

Change History (4)

comment:1 by Sergey Fedoseev, 8 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Sergey Fedoseev, 8 years ago

Has patch: set

comment:3 by Tim Graham, 8 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 1b1ea63f:

Fixed #27962 -- Allowed lookups on Area annotations.

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