﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23721	check_related_objects should not call __iter__	Collin Anderson	nobody	"I have a model with a file-like instance, and I can't have the related query checker (#14334) calling its __iter__ method.

{{{

class FileModel(models.Model):
    def __iter__(self):
        # tries to open a file and iterate over its lines.

class MyModel(models.Model):
    file = models.ForeignKey(FileModel):

filelike = FileModel.objects.first()
MyModel.objects.filter(file=filelike)  # check_related_objects tries to call __iter__

}}}"	Bug	closed	Database layer (models, ORM)	dev	Normal	fixed			Unreviewed	1	0	0	0	0	0
