django1/tests/migrations/migrations_test_apps/unmigrated_app_syncdb/models.py

10 lines
172 B
Python
Raw Normal View History

from django.db import models
class Classroom(models.Model):
pass
class Lesson(models.Model):
classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE)