mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Switch md5 to sha256. (#395)
This commit is contained in:
parent
1de764a22c
commit
731514c52f
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class ConstanceForm(forms.Form):
|
|||
|
||||
def __init__(self, initial, request=None, *args, **kwargs):
|
||||
super().__init__(*args, initial=initial, **kwargs)
|
||||
version_hash = hashlib.md5()
|
||||
version_hash = hashlib.sha256()
|
||||
|
||||
only_view = request and not request.user.has_perm('constance.change_config')
|
||||
if only_view:
|
||||
|
|
|
|||
Loading…
Reference in a new issue