﻿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
22982	Coercing GenericRelation property to string raises StopIteration exception	Ben Davis	nobody	"For example, 

{{{
#!python
class TaggedItem(models.Model):
    tag = models.SlugField()
    content_type = models.ForeignKey(ContentType)
    object_id = models.PositiveIntegerField()
    content_object = GenericForeignKey('content_type', 'object_id')


class Bookmark(models.Model):
    url = models.URLField()
    tags = GenericRelation(TaggedItem)


{{{
#!python
>>> b = Bookmark.objects.create(url='https://www.djangoproject.com/')
>>> str(b.tags)
Traceback (most recent call last):
  File ""<console>"", line 1, in <module>
  File ""django/db/models/manager.py"", line 81, in __str__
    in opts.concrete_managers + opts.abstract_managers
StopIteration
}}}"	Bug	closed	contrib.contenttypes	1.7-rc-1	Normal	fixed			Accepted	0	0	0	0	0	0
