mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #28849 -- Fixed referenced table and column rename on SQLite.
Thanks Ramiro for the input and Tim for the review.
This commit is contained in:
parent
474bd7a5d4
commit
095c1aaa89
9 changed files with 179 additions and 22 deletions
|
|
@ -103,3 +103,11 @@ class ObjectReference(models.Model):
|
|||
|
||||
class RawData(models.Model):
|
||||
raw_data = models.BinaryField()
|
||||
|
||||
|
||||
class Author(models.Model):
|
||||
name = models.CharField(max_length=255, unique=True)
|
||||
|
||||
|
||||
class Book(models.Model):
|
||||
author = models.ForeignKey(Author, models.CASCADE, to_field='name')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue