mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #20094 - Be more careful when checking for Iterator
Python 2.6 has some different behaviour when checking isinstance(foo, collections.Iterator).
This commit is contained in:
committed by
Claude Paroz
parent
f7795e968d
commit
829dc3c5a6
@@ -1 +1,13 @@
|
||||
# Test runner needs a models.py file.
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Category(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
def next(self):
|
||||
return self
|
||||
|
||||
|
||||
class Thing(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
category = models.ForeignKey(Category)
|
||||
|
||||
Reference in New Issue
Block a user