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

This commit is contained in:
Florian Apolloner 2013-05-15 16:45:07 +02:00
parent c8dcee9a42
commit f6d1ca56c9
1 changed files with 1 additions and 2 deletions

View File

@ -30,8 +30,7 @@ class GeoAdminTest(TestCase):
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'))(