Changeset - d0464e870c1a
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 1 month ago 2024-03-20 03:32:44
ben@sturm.com.au
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.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
conservancy/__init__.py
Show inline comments
 
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:
0 comments (0 inline, 0 general)