Skip to content

Commit

Permalink
Added Django 4.2 to the test matrix, fixed deprecation warning (Koed0…
Browse files Browse the repository at this point in the history
…0#89)

* Added Django 4.2 to the CI test matrix

* Positional arguments with TimestampSigner are deprecated
  • Loading branch information
maerteijn authored Apr 12, 2023
1 parent 322a53f commit 1f31725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion django_q/core_signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f31725

Please sign in to comment.