Ticket #13562: values-reverse-one-to-one__test-only.diff

File values-reverse-one-to-one__test-only.diff, 1008 bytes (added by Ben Davis, 16 years ago)

Patch for test that should pass.

  • tests/modeltests/one_to_one/models.py

     
    1616        return u"%s the place" % self.name
    1717
    1818class Restaurant(models.Model):
    19     place = models.OneToOneField(Place, primary_key=True)
     19    place = models.OneToOneField(Place, primary_key=True)
    2020    serves_hot_dogs = models.BooleanField()
    2121    serves_pizza = models.BooleanField()
    2222
     
    9191>>> r.place
    9292<Place: Demon Dogs the place>
    9393
     94
     95
     96
     97
     98
    9499# Restaurant.objects.all() just returns the Restaurants, not the Places.
    95100# Note that there are two restaurants - Ace Hardware the Restaurant was created
    96101# in the call to r.place = p2.
Back to Top