django1/django/contrib/gis
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
..
admin Fixed #25865 -- Made OSMGeoAdmin require GDAL only if transformation is needed. 2016-03-11 12:33:00 -05:00
db Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers. 2016-05-17 12:07:22 +07:00
forms Fixed #26569 -- Updated OSM Mapnik constructor 2016-05-02 18:06:03 +02:00
gdal Refs #26592 -- Fixed band statistics for empty bands and GDAL 2.1 2016-05-16 18:43:04 +02:00
geoip Refs #24121 -- Added a repr() to gis.GeoIP and gis.GeoIP2. 2015-08-31 16:12:40 -04:00
geoip2 Fixed #26554 -- Updated docs URLs to readthedocs.io 2016-04-28 10:09:57 -04:00
geometry Moved contrib.gis tests out of contrib. 2015-02-11 10:29:54 -05:00
geos Fixed #26333 -- Made GIS Geometry classes deconstructible. 2016-05-13 11:30:19 -04:00
locale Pulled translations from Transifex 2016-04-30 14:27:07 +02:00
management Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
maps Fixed #25969 -- Replaced render_to_response() with render() in docs examples. 2015-12-23 09:14:32 -05:00
serializers Fixed W503 flake8 warnings. 2016-04-04 17:14:26 -04:00
sitemaps Removed unneeded GeoManagers in tests. 2016-03-11 13:09:24 -05:00
static/gis/js Fixed JavaScript "no-eval" violation. 2015-07-22 17:09:53 -04:00
templates/gis Fixed #26569 -- Updated OSM Mapnik constructor 2016-05-02 18:06:03 +02:00
utils Fixed #26509 -- Deprecated the contrib.gis.utils.precision_wkt() function. 2016-04-16 16:47:04 -04:00
__init__.py Fixed #22714 -- Made contrib.gis use six-provided memoryview type 2014-05-28 09:24:08 +02:00
apps.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
feeds.py Fixed #25806 -- Removed name mangling from syndication.Feed's _get_dynamic_attr(). 2015-11-25 17:46:58 -05:00
measure.py Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
shortcuts.py Fixed E128 flake8 warnings in django/. 2016-04-08 09:51:06 -04:00
views.py Appeased flake8 2.1.0. 2014-04-21 12:27:34 +02:00