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 , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Has patch: | set |
---|
comment:3 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
PR