Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit f6d1ca56c9d2583c894a44841d109a597ac019bd 1 parent c8dcee9
Florian Apolloner authored
3  django/contrib/gis/tests/geoadmin/tests.py
@@ -30,8 +30,7 @@ def test_olmap_OSM_rendering(self):
30 30
             result)
31 31
 
32 32
     def test_olmap_WMS_rendering(self):
33  
-        admin.site.unregister(City)
34  
-        admin.site.register(City, admin.GeoModelAdmin)
  33
+        geoadmin = admin.GeoModelAdmin(City, admin.site)
35 34
 
36 35
         geoadmin = admin.site._registry[City]
37 36
         result = geoadmin.get_map_widget(City._meta.get_field('point'))(

0 notes on commit f6d1ca5

Please sign in to comment.
Something went wrong with that request. Please try again.