mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
78f163a4fb
commit
7eee1dca42
@@ -447,6 +447,16 @@ class TestFieldType(unittest.TestCase):
|
||||
"Boolean (Either True or False)",
|
||||
)
|
||||
|
||||
def test_char_fields(self):
|
||||
self.assertEqual(
|
||||
views.get_readable_field_data_type(fields.CharField(max_length=255)),
|
||||
"String (up to 255)",
|
||||
)
|
||||
self.assertEqual(
|
||||
views.get_readable_field_data_type(fields.CharField()),
|
||||
"String (unlimited)",
|
||||
)
|
||||
|
||||
def test_custom_fields(self):
|
||||
self.assertEqual(
|
||||
views.get_readable_field_data_type(CustomField()), "A custom field type"
|
||||
|
||||
Reference in New Issue
Block a user