mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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:
parent
78f163a4fb
commit
7eee1dca42
12 changed files with 78 additions and 15 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue