diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-18 14:43:21 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-18 14:43:21 -0500 |
| commit | 67a76500a56d6dbe970126e142e02254dad7dbf3 (patch) | |
| tree | 0356f45a58db30ad2cbc36acdb36090ce10e256e /tests/admin_views | |
| parent | 5fb582d952673067046de0d0ddf37b45675655db (diff) | |
Removed support for admin validators per deprecation timeline; refs #16905.
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index c41a348078..486680fda7 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -9,7 +9,6 @@ import unittest from django.core import mail from django.core.checks import Error from django.core.files import temp as tempfile -from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import (NoReverseMatch, get_script_prefix, resolve, reverse, set_script_prefix) # Register auth models with the admin. @@ -22,7 +21,6 @@ from django.contrib.admin.templatetags.admin_static import static from django.contrib.admin.templatetags.admin_urls import add_preserved_filters from django.contrib.admin.tests import AdminSeleniumWebDriverTestCase from django.contrib.admin.utils import quote -from django.contrib.admin.validation import ModelAdminValidator from django.contrib.admin.views.main import IS_POPUP_VAR from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.models import Group, User, Permission @@ -5272,23 +5270,6 @@ class InlineAdminViewOnSiteTest(TestCase): ) -class AdminGenericRelationTests(TestCase): - def test_generic_relation_fk_list_filter(self): - """ - Validates a model with a generic relation to a model with - a foreign key can specify the generic+fk relationship - path as a list_filter. See trac #21428. - """ - class GenericFKAdmin(ModelAdmin): - list_filter = ('tags__content_type',) - - validator = ModelAdminValidator() - try: - validator.validate_list_filter(GenericFKAdmin, Plot) - except ImproperlyConfigured: - self.fail("Couldn't validate a GenericRelation -> FK path in ModelAdmin.list_filter") - - @override_settings(ROOT_URLCONF="admin_views.urls") class TestEtagWithAdminView(TestCase): # See https://code.djangoproject.com/ticket/16003 |
