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 |
2 | 1 | from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL |
3 | 2 | from django.contrib.admin.options import StackedInline, TabularInline |
4 | 3 | from django.contrib.admin.sites import AdminSite, site |
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
|
8 | 8 | from django.contrib.admin.util import get_deleted_objects, model_ngettext |
9 | 9 | from django.shortcuts import render_to_response |
10 | 10 | from 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 |
14 | 11 | from django.utils.translation import ugettext_lazy, ugettext as _ |
15 | 12 | |
16 | 13 | def delete_selected(modeladmin, request, queryset): |
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
|
4 | 4 | from django.contrib.admin.util import display_for_field, label_for_field |
5 | 5 | from django.contrib.contenttypes.models import ContentType |
6 | 6 | from django.core.exceptions import ObjectDoesNotExist |
7 | | from django.db.models.fields import FieldDoesNotExist |
8 | 7 | from django.db.models.fields.related import ManyToManyRel |
9 | 8 | from django.forms.util import flatatt |
10 | 9 | from django.template.defaultfilters import capfirst |
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
|
5 | 5 | from django.contrib.contenttypes.models import ContentType |
6 | 6 | from django.contrib.admin import widgets |
7 | 7 | from django.contrib.admin import helpers |
8 | | from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_ngettext, model_format_dict |
| 8 | from django.contrib.admin.util import unquote, flatten_fieldsets, get_deleted_objects, model_format_dict |
9 | 9 | from django.contrib import messages |
10 | 10 | from django.views.decorators.csrf import csrf_protect |
11 | 11 | from django.core.exceptions import PermissionDenied, ValidationError |
… |
… |
from django.utils.safestring import mark_safe
|
21 | 21 | from django.utils.functional import curry |
22 | 22 | from django.utils.text import capfirst, get_text_list |
23 | 23 | from django.utils.translation import ugettext as _ |
24 | | from django.utils.translation import ungettext, ugettext_lazy |
| 24 | from django.utils.translation import ungettext |
25 | 25 | from django.utils.encoding import force_unicode |
26 | 26 | |
27 | 27 | HORIZONTAL, VERTICAL = 1, 2 |
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
|
6 | 6 | from django.contrib.admin.views.main import ORDER_VAR, ORDER_TYPE_VAR, PAGE_VAR, SEARCH_VAR |
7 | 7 | from django.core.exceptions import ObjectDoesNotExist |
8 | 8 | from django.db import models |
9 | | from django.forms.forms import pretty_name |
10 | 9 | from django.utils import formats |
11 | 10 | from django.utils.html import escape, conditional_escape |
12 | 11 | from django.utils.safestring import mark_safe |
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 |
2 | 1 | from django.db import models |
3 | 2 | from django.forms.forms import pretty_name |
4 | 3 | from django.utils import formats |
… |
… |
from django.utils.html import escape
|
6 | 5 | from django.utils.safestring import mark_safe |
7 | 6 | from django.utils.text import capfirst |
8 | 7 | from django.utils.encoding import force_unicode, smart_unicode, smart_str |
9 | | from django.utils.translation import ungettext, ugettext as _ |
| 8 | from django.utils.translation import ungettext |
10 | 9 | from django.core.urlresolvers import reverse, NoReverseMatch |
11 | 10 | from django.utils.datastructures import SortedDict |
12 | 11 | |
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
|
4 | 4 | _get_foreign_key) |
5 | 5 | from django.contrib.admin.options import flatten_fieldsets, BaseModelAdmin |
6 | 6 | from django.contrib.admin.options import HORIZONTAL, VERTICAL |
7 | | from django.contrib.admin.util import lookup_field |
8 | 7 | |
9 | 8 | |
10 | 9 | __all__ = ['validate'] |
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 |
2 | 1 | try: |
3 | 2 | from functools import wraps |
4 | 3 | except ImportError: |
5 | 4 | from django.utils.functional import wraps # Python 2.4 fallback. |
6 | 5 | |
7 | 6 | from django import http, template |
8 | | from django.conf import settings |
9 | 7 | from django.contrib.auth.models import User |
10 | 8 | from django.contrib.auth import authenticate, login |
11 | 9 | from django.shortcuts import render_to_response |
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
|
3 | 3 | from django.contrib.admin.util import quote |
4 | 4 | from django.core.paginator import Paginator, InvalidPage |
5 | 5 | from django.db import models |
6 | | from django.db.models.query import QuerySet |
7 | 6 | from django.utils.encoding import force_unicode, smart_str |
8 | 7 | from django.utils.translation import ugettext |
9 | 8 | from django.utils.http import urlencode |