django1/django/contrib/gis/db/models
Loïc Bistuer ed0ff913c6 Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers.
This deprecates use_for_related_fields.

Old API:

class CustomManager(models.Model):
    use_for_related_fields = True

class Model(models.Model):
    custom_manager = CustomManager()

New API:

class Model(models.Model):
    custom_manager = CustomManager()

    class Meta:
        base_manager_name = 'custom_manager'

Refs #20932, #25897.

Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs.
2016-05-17 12:07:22 +07:00
..
sql Refs #26112 -- Fixed aggregate GIS test on Oracle. 2016-02-09 10:04:54 -05:00
__init__.py Sorted imports in __init__.py files. 2015-06-27 11:53:33 -04:00
aggregates.py Fixed #24887 -- Removed one-arg limit from models.aggregate 2015-06-27 11:44:33 -04:00
fields.py Fixed #25588 -- Added spatial lookups to RasterField. 2016-05-06 09:17:18 -04:00
functions.py Fixed #26455 -- Allowed filtering and repairing invalid geometries. 2016-04-09 09:22:30 -04:00
lookups.py Fixed #25588 -- Added spatial lookups to RasterField. 2016-05-06 09:17:18 -04:00
manager.py Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
proxy.py Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 2016-04-29 13:06:32 -04:00
query.py Refs 2bd1bbc -- Made GeometryField.get_db_prep_lookup() a private (deprecated) method. 2016-05-02 09:40:02 -04:00