the next code is error:
class Thread(db.Model):
members = db.StringListProperty(unique =True)
thanks
the next code is error:
class Thread(db.Model):
members = db.StringListProperty(unique =True)
thanks
There is no unique
parameter for the constructor of a property. This is why your code crashes.
There is unfortunately no built-in mechanism on the datastore level. You will need to implement that in your code.
You can make a single property unique to a kind and entity group by making it the entity's key_name. The datastore will not enforce uniqueness for you in any other way.