1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #27674 --- Deprecated django.contrib.gis.admin.OpenLayersWidget.

This commit is contained in:
Mariusz Felisiak
2022-04-22 11:36:27 +02:00
committed by GitHub
parent 6f453cd298
commit eeb0bb6379
5 changed files with 21 additions and 1 deletions

View File

@@ -125,3 +125,8 @@ class DeprecationTests(SimpleTestCase):
DeprecatedOSMGeoAdmin(City, site)
with self.assertRaisesMessage(RemovedInDjango50Warning, msg):
DeprecatedGeoModelAdmin(City, site)
def test_openlayerswidget_warning(self):
msg = "django.contrib.gis.admin.OpenLayersWidget is deprecated."
with self.assertRaisesMessage(RemovedInDjango50Warning, msg):
admin.OpenLayersWidget()