From 1f31725f43e3b6f0f793ed00f482d994ae50a503 Mon Sep 17 00:00:00 2001 From: Martijn Jacobs Date: Wed, 12 Apr 2023 18:18:03 +0200 Subject: [PATCH] Added Django 4.2 to the test matrix, fixed deprecation warning (#89) * Added Django 4.2 to the CI test matrix * Positional arguments with TimestampSigner are deprecated --- .github/workflows/test.yml | 2 +- django_q/core_signing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f21d0c3..f2e4a4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: python-version: [ "3.8", "3.9", "3.10", "3.11" ] - django: [ "3.2", "4.1" ] + django: [ "3.2", "4.1", "4.2" ] services: disque: diff --git a/django_q/core_signing.py b/django_q/core_signing.py index d451ba4..c88f399 100644 --- a/django_q/core_signing.py +++ b/django_q/core_signing.py @@ -37,7 +37,7 @@ def loads( """ # TimestampSigner.unsign() returns str but base64 and zlib compression # operate on bytes. - base64d = force_bytes(TimestampSigner(key, salt=salt).unsign(s, max_age=max_age)) + base64d = force_bytes(TimestampSigner(key=key, salt=salt).unsign(s, max_age=max_age)) decompress = False if base64d[:1] == b".": # It's compressed; uncompress it first