mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	This means testing with local dev caches (not memcache) will warn developers if they are introducing inadvertent importabilities. There is also the ability to silence the warning if a dev is not planning to use memcache and knows what they are doing with their keys. Thanks to Carl Meyer for the patch. Fixed #6447. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
		
			
				
	
	
		
			10 lines
		
	
	
		
			239 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			239 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.core.cache.backends.locmem import CacheClass as LocMemCacheClass
 | |
| 
 | |
| class LiberalKeyValidationMixin(object):
 | |
|     def validate_key(self, key):
 | |
|         pass
 | |
| 
 | |
| class CacheClass(LiberalKeyValidationMixin, LocMemCacheClass):
 | |
|     pass
 | |
| 
 |