Made the @register decorator importable from contrib.gis.admin.

This commit is contained in:
aroche 2015-08-02 11:26:45 +02:00 committed by Tim Graham
parent fa14fb9771
commit cc3d2fa731
1 changed files with 4 additions and 4 deletions

View File

@ -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',
] ]