Closes #22571: Migrate from django-pglocks to django-pgware (#22635)

This commit is contained in:
Arthur Hanson 2026-07-08 08:19:05 -07:00 committed by GitHub
parent b620be0f46
commit 2f604551c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View File

@ -33,10 +33,9 @@ django-htmx
# NetBox core runtime uses netbox.models.ltree.LtreeModel instead.
django-mptt
# Context managers for PostgreSQL advisory locks
# https://github.com/Xof/django-pglocks/blob/main/CHANGELOG.md
# django-pglocks has been merged into django-pgware (see #22571)
django-pglocks==1.0.4
# Context managers for PostgreSQL advisory locks (successor to django-pglocks)
# https://github.com/Xof/django-pgware
django-pgware
# Prometheus metrics library for Django
# https://github.com/korfuri/django-prometheus/blob/master/CHANGELOG.md

View File

@ -5,7 +5,7 @@ from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
from django.db import router, transaction
from django.shortcuts import get_object_or_404
from django.utils.translation import gettext as _
from django_pglocks import advisory_lock
from django_pg_utils import advisory_lock
from drf_spectacular.utils import extend_schema
from netaddr import IPSet
from rest_framework import status

View File

@ -15,7 +15,7 @@ from django.http import Http404
from django.utils import timezone
from django.utils.functional import classproperty
from django.utils.module_loading import import_string
from django_pglocks import advisory_lock
from django_pg_utils import advisory_lock
from rest_framework.exceptions import APIException
from rq.timeouts import JobTimeoutException

View File

@ -6,7 +6,7 @@ django-filter==25.2
django-graphiql-debug-toolbar==0.2.0
django-htmx==1.27.0
django-mptt==0.18.0
django-pglocks==1.0.4
django-pgware==1.0.0
django-prometheus==2.4.0
django-redis==7.0.0
django-rich==2.2.0