Created
September 15, 2018 22:55
-
-
Save bendavis78/50b24ea47b4ec79ad133d6d7b61c191f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Course(models.Model): | |
name = models.CharField(max_length=128) | |
class Session(models.Model): | |
course = models.ForeignKey(Course) | |
date = models.DateField() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment