Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Pizza(models.Model):
- ...
- restaurant = models.ForeignKey('Restaurant', related_name='pizzas_offered')
- active = models.BooleanField(...)
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement