Skip to content

Instantly share code, notes, and snippets.

@jamilnoyda
Last active October 21, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamilnoyda/bdd0c1d1b0d71098e2b688a0593856e6 to your computer and use it in GitHub Desktop.
Save jamilnoyda/bdd0c1d1b0d71098e2b688a0593856e6 to your computer and use it in GitHub Desktop.
class Topping(models.Model):
name = models.CharField(max_length=30)
class Pizza(models.Model):
name = models.CharField(max_length=30)
toppings = models.ManyToManyField(Topping)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment