summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-03-21 19:07:13 -0400
committerTim Graham <timograham@gmail.com>2014-03-21 19:10:07 -0400
commite80de93af6a0a21a9063a55c4d6d20e3927243e9 (patch)
tree996f9414c3cd01db1d62bcb37e6a437df3f5b049 /tests/admin_widgets/tests.py
parent918a16bc4c099ab0cae72a231de3e99e2a9d02cb (diff)
Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple widget
Per deprecation timeline; refs #9321.
Diffstat (limited to 'tests/admin_widgets/tests.py')
-rw-r--r--tests/admin_widgets/tests.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 3c6846073f..939fb65a04 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -19,7 +19,6 @@ from django.core.files.uploadedfile import SimpleUploadedFile
from django.db.models import CharField, DateField
from django.test import TestCase as DjangoTestCase
from django.test import override_settings
-from django.utils import six
from django.utils import translation
from . import models
@@ -169,17 +168,6 @@ class AdminFormfieldForDBFieldTests(TestCase):
def testInheritance(self):
self.assertFormfield(models.Album, 'backside_art', widgets.AdminFileWidget)
- def test_m2m_widgets(self):
- """m2m fields help text as it applies to admin app (#9321)."""
- class AdvisorAdmin(admin.ModelAdmin):
- filter_vertical = ['companies']
-
- self.assertFormfield(models.Advisor, 'companies', widgets.FilteredSelectMultiple,
- filter_vertical=['companies'])
- ma = AdvisorAdmin(models.Advisor, admin.site)
- f = ma.formfield_for_dbfield(models.Advisor._meta.get_field('companies'), request=None)
- self.assertEqual(six.text_type(f.help_text), ' Hold down "Control", or "Command" on a Mac, to select more than one.')
-
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
class AdminFormfieldForDBFieldWithRequestTests(DjangoTestCase):