#27962 closed New feature (fixed)

allow lookups on Area annotation

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
Component: GIS Version: master
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 Changed 21 months ago by Sergey Fedoseev

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 Changed 21 months ago by Sergey Fedoseev

Has patch: set

comment:3 Changed 21 months ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:4 Changed 21 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 1b1ea63f:

Fixed #27962 -- Allowed lookups on Area annotations.

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