Remove CONSERVANCY_SECRET_KEY
Use SECRET_KEY instead to minimise use of non-standard settings.
This commit is contained in:
		
							parent
							
								
									19be27702a
								
							
						
					
					
						commit
						813446c568
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -9,7 +9,7 @@ class ParameterValidator: | ||||||
|             self.given_hash = given_hash_or_params |             self.given_hash = given_hash_or_params | ||||||
|         else: |         else: | ||||||
|             self.given_hash = given_hash_or_params.get(params_hash_key) |             self.given_hash = given_hash_or_params.get(params_hash_key) | ||||||
|         seed = getattr(settings, 'CONSERVANCY_SECRET_KEY', '').encode('utf-8') |         seed = settings.SECRET_KEY.encode('utf-8') | ||||||
|         self.hasher = hashlib.sha256(seed) |         self.hasher = hashlib.sha256(seed) | ||||||
|         if isinstance(self.given_hash, str): |         if isinstance(self.given_hash, str): | ||||||
|             self.hash_type = type(self.given_hash) |             self.hash_type = type(self.given_hash) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue