1
0
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:
Tim Graham
2015-07-15 14:38:10 -04:00
parent bbbb7ce115
commit c52822e750
3 changed files with 25 additions and 8 deletions

View File

@@ -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)