Opened 11 years ago
Closed 11 years ago
#24214 closed New feature (fixed)
Replace GeoQuerySet custom methods by Expressions/Functions
| Reported by: | Claude Paroz | Owned by: | Claude Paroz | 
|---|---|---|---|
| Component: | GIS | Version: | dev | 
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | yes | 
| Easy pickings: | no | UI/UX: | no | 
Description
Despite being a little more verbose, the new Function API can/should be now leveraged to replace most if not all of GeoQuerySet custom methods. This will generally simplify the code of the Django GIS module. I'm currently working on this replacement.
My working branch (frequently rebased): https://github.com/claudep/django/tree/gis_functions
  Note:
 See   TracTickets
 for help on using tickets.
    
I made some good progress and was able to publish a first pull request: https://github.com/django/django/pull/4027
The good news is that we might be able to completely remove GeoQuerySet/GeoManager by Django 2.1!
I still need someone to work on porting the Oracle GIS backend...