from django.contrib.gis import admin
from models import Place

admin.site.register(Place, admin.OSMGeoAdmin)

from django.contrib.gis import admin
from models import Place

try:
    _model_admin = admin.OSMGeoAdmin
except AttributeError:
    _model_admin = admin.ModelAdmin

admin.site.register(Place, _model_admin)

Make it possible to run dev server on my desktop.
Make it possible to run dev server on my desktop.

While I'm accessing a suitable database remotely, I don't have enough
stuff installed locally to have OSMGeoAdmin (no GDAL installed, for
example).

  from django.contrib.gis import admin
  from models import Place
  
- admin.site.register(Place, admin.OSMGeoAdmin)
+ try:
+     _model_admin = admin.OSMGeoAdmin
+ except AttributeError:
+     _model_admin = admin.ModelAdmin
  
+ admin.site.register(Place, _model_admin)
+ 
Make it possible to run dev server on my desktop.
## Code Before:
from django.contrib.gis import admin
from models import Place

admin.site.register(Place, admin.OSMGeoAdmin)

## Instruction:
Make it possible to run dev server on my desktop.
## Code After:
from django.contrib.gis import admin
from models import Place

try:
    _model_admin = admin.OSMGeoAdmin
except AttributeError:
    _model_admin = admin.ModelAdmin

admin.site.register(Place, _model_admin)
