Changes between Initial Version and Version 2 of Ticket #9394


Ignore:
Timestamp:
Oct 18, 2008, 9:55:06 AM (16 years ago)
Author:
Ramiro Morales
Comment:

(edited code example in the description as per Ian's note above, replacing ChineseRestaurant with Restaurant.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9394 – Description

    initial v2  
    1212class Chef(models.Model):
    1313    name = models.CharField(max_length=50)
    14     restaurants = models.ManyToManyField(ChineseRestaurant, through='Employee')
     14    restaurants = models.ManyToManyField(Restaurant, through='Employee')
    1515
    1616class Employee(models.Model):
    17     restaurant = models.ForeignKey(ChineseRestaurant)
     17    restaurant = models.ForeignKey(Restaurant)
    1818    chef = models.ForeignKey(Chef)
    1919    years_of_service = models.IntegerField()
Back to Top