diff options
| author | Collin Anderson <cmawebsite@gmail.com> | 2014-10-27 21:36:47 -0400 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2014-10-28 10:13:50 +0200 |
| commit | ae7cb992bca5d211c9456487feb21b84387006eb (patch) | |
| tree | 66e172fa243d86aed830aae454df6121dd21830b /tests/queries/models.py | |
| parent | 00aa562884a418c4ee20e223ab82c3455997ee7d (diff) | |
Fixed #23721 -- check_related_objects without calling __iter__
Refs #14334
Diffstat (limited to 'tests/queries/models.py')
| -rw-r--r-- | tests/queries/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/queries/models.py b/tests/queries/models.py index bb3d52a635..fbd6221732 100644 --- a/tests/queries/models.py +++ b/tests/queries/models.py @@ -408,6 +408,10 @@ class ObjectA(models.Model): def __str__(self): return self.name + def __iter__(self): + # Ticket #23721 + assert False, 'type checking should happen without calling model __iter__' + class ProxyObjectA(ObjectA): class Meta: |
