mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #32158 -- Fixed loaddata crash on SQLite when table/column names are SQL keywords.
This commit is contained in:
parent
89fc144ded
commit
270072c4c2
3 changed files with 28 additions and 4 deletions
|
@ -140,3 +140,11 @@ class Author(models.Model):
|
|||
|
||||
class Book(models.Model):
|
||||
author = models.ForeignKey(Author, models.CASCADE, to_field='name')
|
||||
|
||||
|
||||
class SQLKeywordsModel(models.Model):
|
||||
id = models.AutoField(primary_key=True, db_column='select')
|
||||
reporter = models.ForeignKey(Reporter, models.CASCADE, db_column='where')
|
||||
|
||||
class Meta:
|
||||
db_table = 'order'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue