mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Python
		
	
	
	
	
	
class EmptyRouter:
 | 
						|
    pass
 | 
						|
 | 
						|
 | 
						|
class TestRouter:
 | 
						|
    def allow_migrate(self, db, app_label, model_name=None, **hints):
 | 
						|
        """
 | 
						|
        The Tribble model should be the only one to appear in the 'other' db.
 | 
						|
        """
 | 
						|
        if model_name == 'tribble':
 | 
						|
            return db == 'other'
 | 
						|
        elif db == 'other':
 | 
						|
            return False
 |