mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #24928 -- Added introspection support for UUIDField
This commit is contained in:
parent
271bfe65d9
commit
3ea7167bb5
3 changed files with 7 additions and 0 deletions
|
@ -87,6 +87,11 @@ class InspectDBTestCase(TestCase):
|
|||
if (connection.features.can_introspect_max_length and
|
||||
not connection.features.interprets_empty_strings_as_nulls):
|
||||
assertFieldType('url_field', "models.CharField(max_length=200)")
|
||||
if connection.features.has_native_uuid_field:
|
||||
assertFieldType('uuid_field', "models.UUIDField()")
|
||||
elif (connection.features.can_introspect_max_length and
|
||||
not connection.features.interprets_empty_strings_as_nulls):
|
||||
assertFieldType('uuid_field', "models.CharField(max_length=32)")
|
||||
|
||||
def test_number_field_types(self):
|
||||
"""Test introspection of various Django field types"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue