mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			441 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			441 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.db import models
 | |
| 
 | |
| 
 | |
| class NotInstalledModel(models.Model):
 | |
| 
 | |
|     class Meta:
 | |
|         app_label = 'not_installed'
 | |
| 
 | |
| 
 | |
| class RelatedModel(models.Model):
 | |
| 
 | |
|     class Meta:
 | |
|         app_label = 'not_installed'
 | |
| 
 | |
|     not_installed = models.ForeignKey(NotInstalledModel, models.CASCADE)
 | |
| 
 | |
| 
 | |
| class M2MRelatedModel(models.Model):
 | |
| 
 | |
|     class Meta:
 | |
|         app_label = 'not_installed'
 | |
| 
 | |
|     not_installed = models.ManyToManyField(NotInstalledModel)
 |