Ticket #14425: admin_imports.diff

File admin_imports.diff, 6.1 KB (added by Rob Hudson, 14 years ago)
  • django/contrib/admin/__init__.py

    diff --git a/django/contrib/admin/__init__.py b/django/contrib/admin/__init__.py
    index 92886ab..25a5651 100644
    a b  
    1 from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
    21from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
    32from django.contrib.admin.options import StackedInline, TabularInline
    43from django.contrib.admin.sites import AdminSite, site
  • django/contrib/admin/actions.py

    diff --git a/django/contrib/admin/actions.py b/django/contrib/admin/actions.py
    index b75c91b..87826be 100644
    a b from django.contrib.admin import helpers  
    88from django.contrib.admin.util import get_deleted_objects, model_ngettext
    99from django.shortcuts import render_to_response
    1010from django.utils.encoding import force_unicode
    11 from django.utils.html import escape
    12 from django.utils.safestring import mark_safe
    13 from django.utils.text import capfirst
    1411from django.utils.translation import ugettext_lazy, ugettext as _
    1512
    1613def delete_selected(modeladmin, request, queryset):
  • django/contrib/admin/helpers.py

    diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py
    index 6bcaf80..1f6d6de 100644
    a b from django.contrib.admin.util import flatten_fieldsets, lookup_field  
    44from django.contrib.admin.util import display_for_field, label_for_field
    55from django.contrib.contenttypes.models import ContentType
    66from django.core.exceptions import ObjectDoesNotExist
    7 from django.db.models.fields import FieldDoesNotExist
    87from django.db.models.fields.related import ManyToManyRel
    98from django.forms.util import flatatt
    109from django.template.defaultfilters import capfirst
  • django/contrib/admin/options.py

    diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
    index 3b6e2b7..ba89bae 100644
    a b from django.forms.models import BaseInlineFormSet  
    55from django.contrib.contenttypes.models import ContentType
    66from django.contrib.admin import widgets
    77from django.contrib.admin import helpers
    8 from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_ngettext, model_format_dict
     8from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_format_dict
    99from django.contrib import messages
    1010from django.views.decorators.csrf import csrf_protect
    1111from django.core.exceptions import PermissionDenied, ValidationError
    from django.utils.safestring import mark_safe  
    2121from django.utils.functional import curry
    2222from django.utils.text import capfirst, get_text_list
    2323from django.utils.translation import ugettext as _
    24 from django.utils.translation import ungettext, ugettext_lazy
     24from django.utils.translation import ungettext
    2525from django.utils.encoding import force_unicode
    2626
    2727HORIZONTAL, VERTICAL = 1, 2
  • django/contrib/admin/templatetags/admin_list.py

    diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py
    index c05af0b..b24f133 100644
    a b from django.contrib.admin.views.main import ALL_VAR, EMPTY_CHANGELIST_VALUE  
    66from django.contrib.admin.views.main import ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR, SEARCH_VAR
    77from django.core.exceptions import ObjectDoesNotExist
    88from django.db import models
    9 from django.forms.forms import pretty_name
    109from django.utils import formats
    1110from django.utils.html import escape, conditional_escape
    1211from django.utils.safestring import mark_safe
  • django/contrib/admin/util.py

    diff --git a/django/contrib/admin/util.py b/django/contrib/admin/util.py
    index 776a6f0..e606f9f 100644
    a b  
    1 from django.core.exceptions import ObjectDoesNotExist
    21from django.db import models
    32from django.forms.forms import pretty_name
    43from django.utils import formats
    from django.utils.html import escape  
    65from django.utils.safestring import mark_safe
    76from django.utils.text import capfirst
    87from django.utils.encoding import force_unicode, smart_unicode, smart_str
    9 from django.utils.translation import ungettext, ugettext as _
     8from django.utils.translation import ungettext
    109from django.core.urlresolvers import reverse, NoReverseMatch
    1110from django.utils.datastructures import SortedDict
    1211
  • django/contrib/admin/validation.py

    diff --git a/django/contrib/admin/validation.py b/django/contrib/admin/validation.py
    index 8d7a8c9..0434fc6 100644
    a b from django.forms.models import (BaseModelForm, BaseModelFormSet, fields_for_mod  
    44    _get_foreign_key)
    55from django.contrib.admin.options import flatten_fieldsets, BaseModelAdmin
    66from django.contrib.admin.options import HORIZONTAL, VERTICAL
    7 from django.contrib.admin.util import lookup_field
    87
    98
    109__all__ = ['validate']
  • django/contrib/admin/views/decorators.py

    diff --git a/django/contrib/admin/views/decorators.py b/django/contrib/admin/views/decorators.py
    index afdc075..67f82ed 100644
    a b  
    1 import base64
    21try:
    32    from functools import wraps
    43except ImportError:
    54    from django.utils.functional import wraps  # Python 2.4 fallback.
    65
    76from django import http, template
    8 from django.conf import settings
    97from django.contrib.auth.models import User
    108from django.contrib.auth import authenticate, login
    119from django.shortcuts import render_to_response
  • django/contrib/admin/views/main.py

    diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py
    index 8c09c10..e29d44a 100644
    a b from django.contrib.admin.options import IncorrectLookupParameters  
    33from django.contrib.admin.util import quote
    44from django.core.paginator import Paginator, InvalidPage
    55from django.db import models
    6 from django.db.models.query import QuerySet
    76from django.utils.encoding import force_unicode, smart_str
    87from django.utils.translation import ugettext
    98from django.utils.http import urlencode
Back to Top