Skip to content

Instantly share code, notes, and snippets.

@mgrouchy
Created March 25, 2011 19:50
Show Gist options
  • Save mgrouchy/887510 to your computer and use it in GitHub Desktop.
Save mgrouchy/887510 to your computer and use it in GitHub Desktop.
class Container(models.Model):
children = models.OneToManyField(Child) #I know this one to many field does not exist
class Child(models.Model):
random_field = models.IntegerField(default=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment