The error
TemplateSyntaxError: Caught ReferencePropertyResolveError while rendering: ReferenceProperty failed to be resolved: [u'Image', 12345678L]
Models
#ModelBase class extends from db.Model
class Article(TaggableModel):
...
image = db.ReferenceProperty(Image, collection_name='image_set')
image_blob = blobstore.BlobReferenceProperty()
class BlobStoreImage(ModelBase):
...
title = db.StringProperty()
alt = db.TextProperty(default="")
blobkey = blobstore.BlobReferenceProperty()
class Image(ModelBase):
...
title = db.StringProperty()
original = db.BlobProperty()
From what I understand, there is an article that is referring to a non-existent Image
with id='12345678L'
. However, it seems that you can't query individual fields in app engine. Seeing as this is the case, how can I resolve this error by either removing the Article
associated with the non-existent image, or alternatively, creating an image with the above id.
I have already tried the latter, and the server returned a 200 code, but perhaps I have the wrong syntax.