#27996: Add pgcrypto extension  and GEN_RANDOM_UUID function to contrib.postgres
-------------------------------------+-------------------------------------
     Reporter:  Paolo Melchiorre     |                    Owner:  Paolo
                                     |  Melchiorre
         Type:  New feature          |                   Status:  closed
    Component:  contrib.postgres     |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  uuid extension       |             Triage Stage:  Ready for
  function random postgresql         |  checkin
  cryptography                       |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Iuri de Silvio):

 For completeness, here is the stacktrace.

 {{{
 Traceback (most recent call last):
   File "runtests.py", line 571, in <module>
     failures = django_tests(
   File "runtests.py", line 313, in django_tests
     failures = test_runner.run_tests(
   File "django/django/test/runner.py", line 707, in run_tests
     old_config = self.setup_databases(aliases=databases)
   File "django/django/test/runner.py", line 626, in setup_databases
     return _setup_databases(
   File "django/django/test/utils.py", line 170, in setup_databases
     connection.creation.create_test_db(
   File "django/django/db/backends/base/creation.py", line 65, in
 create_test_db
     call_command(
   File "django/django/core/management/__init__.py", line 168, in
 call_command
     return command.execute(*args, **defaults)
   File "django/django/core/management/base.py", line 394, in execute
     output = self.handle(*args, **options)
   File "django/django/core/management/base.py", line 89, in wrapped
     res = handle_func(*args, **kwargs)
   File "django/django/core/management/commands/migrate.py", line 92, in
 handle
     executor = MigrationExecutor(connection,
 self.migration_progress_callback)
   File "django/django/db/migrations/executor.py", line 18, in __init__
     self.loader = MigrationLoader(self.connection)
   File "django/django/db/migrations/loader.py", line 53, in __init__
     self.build_graph()
   File "django/django/db/migrations/loader.py", line 210, in build_graph
     self.load_disk()
   File "django/django/db/migrations/loader.py", line 112, in load_disk
     migration_module = import_module(migration_path)
   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in
 import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
   File "<frozen importlib._bootstrap>", line 975, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
   File "<frozen importlib._bootstrap>", line 219, in
 _call_with_frames_removed
   File "django/tests/postgres_tests/migrations/0001_setup_extensions.py",
 line 22, in <module>
     needs_crypto_extension = not connection.features.is_postgresql_13
 AttributeError: 'DatabaseFeatures' object has no attribute
 'is_postgresql_13'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/27996#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.74abba0ea7b2929e8868666c1b2b9697%40djangoproject.com.

Reply via email to