Don't unregister OSMGeoAdmin, other tests rely on it.
This commit is contained in:
parent
c8dcee9a42
commit
f6d1ca56c9
|
@ -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'))(
|
||||
|
|
Loading…
Reference in New Issue