mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			312 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			312 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from unittest import mock
 | |
| 
 | |
| from django.db import migrations
 | |
| 
 | |
| try:
 | |
|     from django.contrib.postgres.operations import CryptoExtension
 | |
| except ImportError:
 | |
|     CryptoExtension = mock.Mock()
 | |
| 
 | |
| 
 | |
| class Migration(migrations.Migration):
 | |
|     # Required for the SHA database functions.
 | |
|     operations = [CryptoExtension()]
 |