diff --git a/tests/regressiontests/defer_regress/models.py b/tests/regressiontests/defer_regress/models.py
index e2a5944..473f521 100644
a
|
b
|
class Leaf(models.Model):
|
30 | 30 | def __unicode__(self): |
31 | 31 | return self.name |
32 | 32 | |
| 33 | class Place(models.Model): |
| 34 | name = models.CharField(max_length=50) |
| 35 | |
| 36 | def __unicode__(self): |
| 37 | return self.name |
| 38 | |
| 39 | class Restaurant(Place): |
| 40 | serves_pizza = models.BooleanField() |
| 41 | |
33 | 42 | __test__ = {"regression_tests": """ |
34 | 43 | Deferred fields should really be deferred and not accidentally use the field's |
35 | 44 | default value just because they aren't passed to __init__. |
… |
… |
u'c1'
|
91 | 100 | >>> Leaf.objects.select_related().only("child__name", "second_child__name") |
92 | 101 | [<Leaf_Deferred_name_value: l1>] |
93 | 102 | |
| 103 | >>> _ = Restaurant.objects.create(name="The Art of Pizza", serves_pizza=True) |
| 104 | >>> r = Restaurant.objects.defer('name').get() |
| 105 | >>> r.save() |
| 106 | |
94 | 107 | """ |
95 | 108 | } |