mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25128 -- Fixed SQLite SchemaEditor crash when adding a ForeignObject field.
This commit is contained in:
@@ -89,6 +89,14 @@ class BookWithoutAuthor(models.Model):
|
||||
db_table = "schema_book"
|
||||
|
||||
|
||||
class BookForeignObj(models.Model):
|
||||
title = models.CharField(max_length=100, db_index=True)
|
||||
author_id = models.IntegerField()
|
||||
|
||||
class Meta:
|
||||
apps = new_apps
|
||||
|
||||
|
||||
class IntegerPK(models.Model):
|
||||
i = models.IntegerField(primary_key=True)
|
||||
j = models.IntegerField(unique=True)
|
||||
|
||||
Reference in New Issue
Block a user