Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions psqlextra/backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from typing import TYPE_CHECKING

from django import VERSION
from django.conf import settings
from django.contrib.postgres.signals import (
get_hstore_oids,
Expand Down Expand Up @@ -45,6 +46,9 @@ class DatabaseWrapper(Wrapper):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

if VERSION >= (5, 0):
return

# Some base back-ends such as the PostGIS back-end don't properly
# set `ops_class` and `introspection_class` and initialize these
# classes themselves.
Expand Down