Hello, In Google App Engine, datastore modelling, I would like to ask how can I check for null value of a property with class UserProperty? for example: I have this code:
class Entry(db.Model):
title = db.StringProperty()
description = db.StringProperty()
author = db.UserProperty()
editor = db.UserProperty()
creationdate = db.DateTimeProperty()
When I want to check those entries that have the editor is not null, I can not use this kind of GqlQuery
query = db.GqlQuery("SELECT * FROM Entry " +
"WHERE editor IS NOT NULL" +
"ORDER BY creationdate DESC")
entries = query.fetch(5)
I am wondering if there is any method for checking the existence of a variable with UserProperty? Thank you!