Ticket #7488: 7899_tests.1.diff
File 7899_tests.1.diff, 724 bytes (added by , 16 years ago) |
---|
-
tests/modeltests/model_inheritance/models.py
116 116 def __unicode__(self): 117 117 return u"%s the parking lot" % self.name 118 118 119 class Product(models.Model): 120 supplier = models.ForeignKey(Supplier) 121 119 122 __test__ = {'API_TESTS':""" 120 123 # The Student and Worker models both have 'name' and 'age' fields on them and 121 124 # inherit the __unicode__() method, just as with normal Python subclassing. … … 309 312 3 310 313 >>> settings.DEBUG = False 311 314 315 >>> Product.objects.filter(supplier=Supplier()) 316 [] 317 312 318 """}