mirror of
https://github.com/django/django.git
synced 2024-11-28 21:43:13 +01:00
4555aa0a48
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
9 lines
220 B
Python
9 lines
220 B
Python
try:
|
|
from django.contrib.gis import admin
|
|
except ImportError:
|
|
from django.contrib import admin
|
|
|
|
admin.GISModelAdmin = admin.ModelAdmin
|
|
# RemovedInDjango50Warning.
|
|
admin.OSMGeoAdmin = admin.ModelAdmin
|