[Answer]-AttributeError: 'TestHandler' object has no attribute 'model' in django piston

1👍

As the example was written:

class AnonymousBlogpostHandler(AnonymousBaseHandler):
    model = Blogpost
    fields = ('title', 'content')

You missed model.

👤iMom0

Leave a comment