Skip to content

Commit

Permalink
fix: picking default algorithm value from settings instead of hardcod…
Browse files Browse the repository at this point in the history
…ed value.
  • Loading branch information
awais786 committed Aug 30, 2023
1 parent 3f8dbe2 commit fb9b485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(
self.__class__.__module__,
self.__class__.__name__,
)
self.algorithm = algorithm or "sha256"
self.algorithm = algorithm or settings.DEFAULT_HASHING_ALGORITHM
# RemovedInDjango51Warning.
if args:
warnings.warn(
Expand Down

0 comments on commit fb9b485

Please sign in to comment.