I'm writing a db.Model class in google app engine that looks something like this:
class Cheese(db.Model):
name = db.StringProperty()
def say_cheese(self):
return name + "cheese"
For some reason, whenever I run:
cheese = Cheese(name = "smelly")
print thing.say_cheese()
I get a KindError - No implementation for kind 'Cheese'. I want it to say: "smelly cheese"
Am I doing something wrong? Am I not allowed to add a method to a db.Model object?