mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #23264: Schema backends honour db_constraint
This commit is contained in:
		| @@ -50,6 +50,15 @@ class Book(models.Model): | ||||
|         apps = new_apps | ||||
|  | ||||
|  | ||||
| class BookWeak(models.Model): | ||||
|     author = models.ForeignKey(Author, db_constraint=False) | ||||
|     title = models.CharField(max_length=100, db_index=True) | ||||
|     pub_date = models.DateTimeField() | ||||
|  | ||||
|     class Meta: | ||||
|         apps = new_apps | ||||
|  | ||||
|  | ||||
| class BookWithM2M(models.Model): | ||||
|     author = models.ForeignKey(Author) | ||||
|     title = models.CharField(max_length=100, db_index=True) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user