Skip to content

Instantly share code, notes, and snippets.

@jamilnoyda
Created March 21, 2019 10:36
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/9981489351717c64bf9d1d04095bb725 to your computer and use it in GitHub Desktop.
Save jamilnoyda/9981489351717c64bf9d1d04095bb725 to your computer and use it in GitHub Desktop.
class Waiter(models.Model):
restaurant = models.ForeignKey(Restaurant, on_delete=models.CASCADE)
name = models.CharField(max_length=50)
def __str__(self):
return "%s the waiter at %s" % (self.name, self.restaurant)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment