Stuart, Take a look at StringListProperty and ListProperty. You don't want to model 'tags' in this (relational) manner. It won't perform well on big table. In the simplest case, you can have: tags = StringListProperty(). If you need something more sophisticated, there are a number of other implementations for app engine out there, if you google for it.
Cheers, -Curtis On Jan 30, 11:56 am, Stuart Grimshaw <[email protected]> wrote: > 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.
