mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unused Field.get_flatchoices() method.
Unused since c2ba59fc1d (Django 1.0).
Thanks Andy Baker for the report.
This commit is contained in:
@@ -480,8 +480,8 @@ class BooleanFieldTests(test.TestCase):
|
||||
class ChoicesTests(test.SimpleTestCase):
|
||||
def test_choices_and_field_display(self):
|
||||
"""
|
||||
Check that get_choices and get_flatchoices interact with
|
||||
get_FIELD_display to return the expected values (#7913).
|
||||
Check that get_choices() interacts with get_FIELD_display() to return
|
||||
the expected values (#7913).
|
||||
"""
|
||||
self.assertEqual(Whiz(c=1).get_c_display(), 'First') # A nested value
|
||||
self.assertEqual(Whiz(c=0).get_c_display(), 'Other') # A top level value
|
||||
|
||||
Reference in New Issue
Block a user