Re: Reverse DB lookup returns too many instances

2009-06-17 Thread Alex Gaynor
On Wed, Jun 17, 2009 at 8:49 PM, IanR wrote: > > I've recreated this behavior with the following examples. (using > 1.0) > > #models.py > class Building(models.Model): > name = models.CharField(max_length=10) > floors = models.IntegerField() > > class Unit(models.Model): > unit_number = mode

Reverse DB lookup returns too many instances

2009-06-17 Thread IanR
I've recreated this behavior with the following examples. (using 1.0) #models.py class Building(models.Model): name = models.CharField(max_length=10) floors = models.IntegerField() class Unit(models.Model): unit_number = models.IntegerField() bedrooms = models.IntegerField() building