django1/tests/gis_tests/admin.py

7 lines
145 B
Python

try:
from django.contrib.gis import admin
except ImportError:
from django.contrib import admin
admin.OSMGeoAdmin = admin.ModelAdmin