Fix class-based views example

This commit is contained in:
Dosenpfand 2022-11-27 12:53:08 +01:00
parent 618fdc8600
commit 9a294a6401
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class's :meth:`~views.View.as_view` method.
def __init__(self, model):
self.model = model
def get(id):
def get(self, id):
post = self.model.query.get(id)
return jsonify(post.to_json())