Fix strange issue with ParameterValidator settings
When imported at top-level, `settings` was a Python module, rather than a Django settings object. Not sure why.
This commit is contained in:
parent
2b709f61e0
commit
d0464e870c
1 changed files with 1 additions and 3 deletions
|
@ -1,10 +1,8 @@
|
|||
import hashlib
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class ParameterValidator:
|
||||
def __init__(self, given_hash_or_params, params_hash_key=None):
|
||||
from django.conf import settings
|
||||
if params_hash_key is None:
|
||||
self.given_hash = given_hash_or_params
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue