﻿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
20279	generic relation	lucemia@…	nobody	"while I used field names item_type, item_id instead of content_type, object_id.
to reference an object. and while delete the object, it will raise exception.

For example:

class ObjectPermission(models.Model):
    # implement object/row based permission
    # it support permission for all, for table and for object
    # the item_type, item_id designed to accept 0, as a wildcard
    permission = models.ForeignKey(Permission)

    item_type = models.ForeignKey(ContentType, blank=True, default=0, null=True)
    item_id = models.PositiveIntegerField(blank=True, default=0)
    item_object = generic.GenericForeignKey('item_type', 'item_id')


class Publisher(models.Model):
    name = models.CharField(max_length=255)

I create an relation between publisher and object permission.
while delete a publisher in django admin, it will raise fielderror, 

at query.py line 1320
raise FieldError(""Cannot resolve keyword object into field. ""
                            ""Choices are: %s"" % (name, "", "".join(names)))

and after I change the field name back to content_type, object_id, 
the exception won't appear. 

The django doc didn't mentioned this behavior "	Bug	new	Uncategorized	1.4	Normal				Unreviewed	0	0	0	0	0	0
