mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23264: Schema backends honour db_constraint
This commit is contained in:
parent
8fe406864c
commit
27b6f28435
3 changed files with 106 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue