Fixed #14425 -- Unused imports in contrib.admin. Thanks robhudson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9079ecf4d6
commit
e509c1527a
|
@ -1,4 +1,3 @@
|
|||
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
|
||||
from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
|
||||
from django.contrib.admin.options import StackedInline, TabularInline
|
||||
from django.contrib.admin.sites import AdminSite, site
|
||||
|
|
|
@ -8,9 +8,6 @@ from django.contrib.admin import helpers
|
|||
from django.contrib.admin.util import get_deleted_objects, model_ngettext
|
||||
from django.shortcuts import render_to_response
|
||||
from django.utils.encoding import force_unicode
|
||||
from django.utils.html import escape
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.text import capfirst
|
||||
from django.utils.translation import ugettext_lazy, ugettext as _
|
||||
|
||||
def delete_selected(modeladmin, request, queryset):
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.contrib.admin.util import flatten_fieldsets, lookup_field
|
|||
from django.contrib.admin.util import display_for_field, label_for_field
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.db.models.fields import FieldDoesNotExist
|
||||
from django.db.models.fields.related import ManyToManyRel
|
||||
from django.forms.util import flatatt
|
||||
from django.template.defaultfilters import capfirst
|
||||
|
|
|
@ -5,7 +5,7 @@ from django.forms.models import BaseInlineFormSet
|
|||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.contrib.admin import widgets
|
||||
from django.contrib.admin import helpers
|
||||
from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_ngettext, model_format_dict
|
||||
from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_format_dict
|
||||
from django.contrib import messages
|
||||
from django.views.decorators.csrf import csrf_protect
|
||||
from django.core.exceptions import PermissionDenied, ValidationError
|
||||
|
@ -21,7 +21,7 @@ from django.utils.safestring import mark_safe
|
|||
from django.utils.functional import curry
|
||||
from django.utils.text import capfirst, get_text_list
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import ungettext, ugettext_lazy
|
||||
from django.utils.translation import ungettext
|
||||
from django.utils.encoding import force_unicode
|
||||
|
||||
HORIZONTAL, VERTICAL = 1, 2
|
||||
|
|
|
@ -6,7 +6,6 @@ from django.contrib.admin.views.main import ALL_VAR, EMPTY_CHANGELIST_VALUE
|
|||
from django.contrib.admin.views.main import ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR, SEARCH_VAR
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.db import models
|
||||
from django.forms.forms import pretty_name
|
||||
from django.utils import formats
|
||||
from django.utils.html import escape, conditional_escape
|
||||
from django.utils.safestring import mark_safe
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.db import models
|
||||
from django.forms.forms import pretty_name
|
||||
from django.utils import formats
|
||||
|
@ -6,7 +5,7 @@ from django.utils.html import escape
|
|||
from django.utils.safestring import mark_safe
|
||||
from django.utils.text import capfirst
|
||||
from django.utils.encoding import force_unicode, smart_unicode, smart_str
|
||||
from django.utils.translation import ungettext, ugettext as _
|
||||
from django.utils.translation import ungettext
|
||||
from django.core.urlresolvers import reverse, NoReverseMatch
|
||||
from django.utils.datastructures import SortedDict
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ from django.forms.models import (BaseModelForm, BaseModelFormSet, fields_for_mod
|
|||
_get_foreign_key)
|
||||
from django.contrib.admin.options import flatten_fieldsets, BaseModelAdmin
|
||||
from django.contrib.admin.options import HORIZONTAL, VERTICAL
|
||||
from django.contrib.admin.util import lookup_field
|
||||
|
||||
|
||||
__all__ = ['validate']
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import base64
|
||||
try:
|
||||
from functools import wraps
|
||||
except ImportError:
|
||||
from django.utils.functional import wraps # Python 2.4 fallback.
|
||||
|
||||
from django import http, template
|
||||
from django.conf import settings
|
||||
from django.contrib.auth.models import User
|
||||
from django.contrib.auth import authenticate, login
|
||||
from django.shortcuts import render_to_response
|
||||
|
|
|
@ -3,7 +3,6 @@ from django.contrib.admin.options import IncorrectLookupParameters
|
|||
from django.contrib.admin.util import quote
|
||||
from django.core.paginator import Paginator, InvalidPage
|
||||
from django.db import models
|
||||
from django.db.models.query import QuerySet
|
||||
from django.utils.encoding import force_unicode, smart_str
|
||||
from django.utils.translation import ugettext
|
||||
from django.utils.http import urlencode
|
||||
|
|
Loading…
Reference in New Issue