mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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
|
@ -184,6 +184,13 @@ class InspectDBTestCase(TestCase):
|
|||
output,
|
||||
)
|
||||
|
||||
@skipUnlessDBFeature("supports_unlimited_charfield")
|
||||
def test_char_field_unlimited(self):
|
||||
out = StringIO()
|
||||
call_command("inspectdb", "inspectdb_charfieldunlimited", stdout=out)
|
||||
output = out.getvalue()
|
||||
self.assertIn("char_field = models.CharField()", output)
|
||||
|
||||
def test_number_field_types(self):
|
||||
"""Test introspection of various Django field types"""
|
||||
assertFieldType = self.make_field_type_asserter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue