Made the @register decorator importable from contrib.gis.admin.
This commit is contained in:
parent
fa14fb9771
commit
cc3d2fa731
|
@ -1,12 +1,12 @@
|
||||||
from django.contrib.admin import (
|
from django.contrib.admin import (
|
||||||
HORIZONTAL, VERTICAL, AdminSite, ModelAdmin, StackedInline, TabularInline,
|
HORIZONTAL, VERTICAL, AdminSite, ModelAdmin, StackedInline, TabularInline,
|
||||||
autodiscover, site,
|
autodiscover, register, site,
|
||||||
)
|
)
|
||||||
from django.contrib.gis.admin.options import GeoModelAdmin, OSMGeoAdmin
|
from django.contrib.gis.admin.options import GeoModelAdmin, OSMGeoAdmin
|
||||||
from django.contrib.gis.admin.widgets import OpenLayersWidget
|
from django.contrib.gis.admin.widgets import OpenLayersWidget
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'autodiscover', 'site', 'AdminSite', 'ModelAdmin', 'StackedInline',
|
'HORIZONTAL', 'VERTICAL', 'AdminSite', 'ModelAdmin', 'StackedInline',
|
||||||
'TabularInline', 'HORIZONTAL', 'VERTICAL', 'GeoModelAdmin', 'OSMGeoAdmin',
|
'TabularInline', 'autodiscover', 'register', 'site',
|
||||||
'OpenLayersWidget',
|
'GeoModelAdmin', 'OSMGeoAdmin', 'OpenLayersWidget',
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue