mirror of https://github.com/django/django.git
10 lines
172 B
Python
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)
|