From 0eaef8e527af556c0c517a64035929404cf94a39 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 15 May 2015 09:33:14 -0400 Subject: [PATCH] Added contrib.gis.admin.__all__ --- django/contrib/gis/admin/__init__.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/django/contrib/gis/admin/__init__.py b/django/contrib/gis/admin/__init__.py index e37226bc17c..79e51e4303c 100644 --- a/django/contrib/gis/admin/__init__.py +++ b/django/contrib/gis/admin/__init__.py @@ -1,8 +1,14 @@ # Getting the normal admin routines, classes, and `site` instance. -from django.contrib.admin import ( # NOQA: flake8 detects only the last __all__ +from django.contrib.admin import ( autodiscover, site, AdminSite, ModelAdmin, StackedInline, TabularInline, HORIZONTAL, VERTICAL, ) # Geographic admin options classes and widgets. -from django.contrib.gis.admin.options import GeoModelAdmin, OSMGeoAdmin # NOQA -from django.contrib.gis.admin.widgets import OpenLayersWidget # NOQA +from django.contrib.gis.admin.options import GeoModelAdmin, OSMGeoAdmin +from django.contrib.gis.admin.widgets import OpenLayersWidget + +__all__ = [ + 'autodiscover', 'site', 'AdminSite', 'ModelAdmin', 'StackedInline', + 'TabularInline', 'HORIZONTAL', 'VERTICAL', 'GeoModelAdmin', 'OSMGeoAdmin', + 'OpenLayersWidget', +]