Has anyone got "django.contrib.contenttypes.models.ContentType"
working under app-engine-patch? I'm trying to use django-tagging and
it's struggling with this error:

Exception Value:
ForeignKey(<class 'django.contrib.contenttypes.models.ContentType'>)
is invalid. First parameter to ForeignKey must be either a model, a
model name, or the string 'self'

The model looks like this:

class TaggedItem(models.Model):
    """
    Holds the relationship between a tag and the item being tagged.
    """
    tag          = models.ForeignKey(Tag, verbose_name=_('tag'),
related_name='items')
    content_type = models.ForeignKey(ContentType, verbose_name=_
('content type'))
    object_id    = models.PositiveIntegerField(_('object id'),
db_index=True)
    object       = generic.GenericForeignKey('content_type',
'object_id')

and content_type is the line actually causing the error.

-- 
You received this message because you are subscribed to the Google Groups 
"app-engine-patch" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/app-engine-patch?hl=en.

Reply via email to