forked from orbit-oss/flask
Merge pull request #4883 from Dosenpfand/doc-extension-dev-2.2.x
Documentation: Fix class-based views example for Extension Development
This commit is contained in:
commit
29697fffb4
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue