Created
March 21, 2019 10:36
-
-
Save jamilnoyda/9981489351717c64bf9d1d04095bb725 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 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