diff options
author | Tim Graham <timograham@gmail.com> | 2016-11-07 13:00:40 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-17 20:51:56 -0500 |
commit | a0d166306fbdc41f49e6fadf4ec84b17eb147daa (patch) | |
tree | 112678f9dc1005900415f6c1564c241c17a6d688 /tests/managers_regress/tests.py | |
parent | e90c745afdcf89bc3416c9cb2d4a06dfacb2a250 (diff) | |
download | django-a0d166306fbdc41f49e6fadf4ec84b17eb147daa.tar.gz |
Removed GeoManager and GeoQuerySet per deprecation timeline.
Diffstat (limited to 'tests/managers_regress/tests.py')
-rw-r--r-- | tests/managers_regress/tests.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/managers_regress/tests.py b/tests/managers_regress/tests.py index 1ff34dede3..031c8a8155 100644 --- a/tests/managers_regress/tests.py +++ b/tests/managers_regress/tests.py @@ -305,19 +305,6 @@ class TestManagerInheritance(TestCase): @isolate_apps('managers_regress') class TestManagerDeprecations(TestCase): - def test_use_for_related_fields_on_geomanager(self): - from django.contrib.gis.db.models import GeoManager - - class MyModel(models.Model): - objects = GeoManager() - - # Shouldn't issue any warnings, since GeoManager itself will be - # deprecated at the same time as use_for_related_fields, there - # is no point annoying users with this deprecation. - with warnings.catch_warnings(record=True) as warns: - warnings.simplefilter('always', RemovedInDjango20Warning) - MyModel._base_manager - self.assertEqual(len(warns), 0) def test_use_for_related_fields_for_base_manager(self): class MyManager(models.Manager): |