mirror of
https://github.com/django/django.git
synced 2025-11-19 11:15:44 +00:00
Refs #24928 -- Added introspection support for PostgreSQL HStoreField.
This commit is contained in:
parent
0eec2a163a
commit
35f86b641a
6 changed files with 37 additions and 2 deletions
|
|
@ -33,3 +33,16 @@ class InspectDBTests(PostgreSQLTestCase):
|
|||
"null=True)",
|
||||
],
|
||||
)
|
||||
|
||||
def test_hstore_field(self):
|
||||
from django.db.backends.postgresql.base import psycopg_version
|
||||
|
||||
if psycopg_version() < (3, 2):
|
||||
self.skipTest("psycopg 3.2+ is required.")
|
||||
self.assertFieldsInModel(
|
||||
"postgres_tests_hstoremodel",
|
||||
[
|
||||
"field = django.contrib.postgres.fields.HStoreField(blank=True, "
|
||||
"null=True)",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue