1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #27507 -- Used SchemaEditor.execute() to run deferred_sql in migrate's sync_apps().

This commit is contained in:
Lex Berezhny
2016-11-18 17:36:34 -05:00
committed by Tim Graham
parent 71609a5b90
commit 8eb56f3c78
4 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
from django.db import models
class Classroom(models.Model):
pass
class Lesson(models.Model):
classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE)