Browse files

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

  • Loading branch information...
1 parent c8dcee9 commit f6d1ca56c9d2583c894a44841d109a597ac019bd @apollo13 apollo13 committed May 15, 2013
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'))(

0 comments on commit f6d1ca5

Please sign in to comment.