Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Django 4 #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Django>=3.2,<3.3
Django>=3.2,<=4.2.7
9 changes: 7 additions & 2 deletions tree/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
from django.contrib.postgres.fields import ArrayField
from django.core.exceptions import ImproperlyConfigured
from django.db import DEFAULT_DB_ALIAS, connections, transaction
from django.db.models import DecimalField, Index, Func, F
from django.db.models import DecimalField, F, Index
from django.db.models.expressions import RawSQL
from django.utils.translation import ugettext_lazy as _

try:
from django.utils.translation import ugettext_lazy as _
except ImportError:
# Django 3+
from django.utils.translation import gettext_lazy as _

from .sql import postgresql
from .types import Path
Expand Down