mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #27996 -- Fixed postgres_tests crash if not running with PostgreSQL.
This commit is contained in:
@@ -19,7 +19,10 @@ except ImportError:
|
|||||||
UnaccentExtension = mock.Mock()
|
UnaccentExtension = mock.Mock()
|
||||||
needs_crypto_extension = False
|
needs_crypto_extension = False
|
||||||
else:
|
else:
|
||||||
needs_crypto_extension = not connection.features.is_postgresql_13
|
needs_crypto_extension = (
|
||||||
|
connection.vendor == 'postgresql' and
|
||||||
|
not connection.features.is_postgresql_13
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|||||||
Reference in New Issue
Block a user