Skip to content

Instantly share code, notes, and snippets.

@bendavis78
Created September 15, 2018 22:55
Show Gist options
  • Save bendavis78/50b24ea47b4ec79ad133d6d7b61c191f to your computer and use it in GitHub Desktop.
Save bendavis78/50b24ea47b4ec79ad133d6d7b61c191f to your computer and use it in GitHub Desktop.
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