mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.
This commit is contained in:
committed by
Tim Graham
parent
0877989c94
commit
7c9cb1ed37
@@ -520,8 +520,8 @@ class ForeignKeyRawIdWidgetTest(TestCase):
|
||||
self.assertHTMLEqual(
|
||||
w.render('honeycomb_widget', big_honeycomb.pk, attrs={}),
|
||||
'<input type="text" name="honeycomb_widget" value="%(hcombpk)s" />'
|
||||
' <strong>Honeycomb object</strong>'
|
||||
% {'hcombpk': big_honeycomb.pk}
|
||||
' <strong>%(hcomb)s</strong>'
|
||||
% {'hcombpk': big_honeycomb.pk, 'hcomb': big_honeycomb}
|
||||
)
|
||||
|
||||
def test_fk_to_self_model_not_in_admin(self):
|
||||
@@ -535,8 +535,8 @@ class ForeignKeyRawIdWidgetTest(TestCase):
|
||||
self.assertHTMLEqual(
|
||||
w.render('individual_widget', subject1.pk, attrs={}),
|
||||
'<input type="text" name="individual_widget" value="%(subj1pk)s" />'
|
||||
' <strong>Individual object</strong>'
|
||||
% {'subj1pk': subject1.pk}
|
||||
' <strong>%(subj1)s</strong>'
|
||||
% {'subj1pk': subject1.pk, 'subj1': subject1}
|
||||
)
|
||||
|
||||
def test_proper_manager_for_label_lookup(self):
|
||||
|
||||
Reference in New Issue
Block a user