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

10 lines
172 B
Python

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