Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't unregister OSMGeoAdmin, other tests rely on it.

  • Loading branch information...
commit f6d1ca56c9d2583c894a44841d109a597ac019bd 1 parent c8dcee9
@apollo13 apollo13 authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/contrib/gis/tests/geoadmin/tests.py
View
3  django/contrib/gis/tests/geoadmin/tests.py
@@ -30,8 +30,7 @@ def test_olmap_OSM_rendering(self):
result)
def test_olmap_WMS_rendering(self):
- admin.site.unregister(City)
- admin.site.register(City, admin.GeoModelAdmin)
+ geoadmin = admin.GeoModelAdmin(City, admin.site)
geoadmin = admin.site._registry[City]
result = geoadmin.get_map_widget(City._meta.get_field('point'))(
Please sign in to comment.
Something went wrong with that request. Please try again.