in discussion of ForeignKey(), mention the reverse relationship that is created
|Reported by:||Chris Curvey||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Mention that creating a foreign key creates a backref as well. For example;
class Car(models.Model): manufacturer = models.ForeignKey('Manufacturer') # ... class Manufacturer(models.Model): # ...
will silently create an attribute of manufacturer called "car_set" that contains a list of all the cars associated with that manufacturer.