Skip to content
Myr

Fix class-based views example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dosenpfand · committed by Dosenpfand · parent 618fdc8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/extensiondev.rst+1 added-1 removed
210 unmodified lines
211 class PostAPI(MethodView):212 def __init__(self, model):213 self.model = model214215 def get(id):215 def get(self, id):216 post = self.model.query.get(id)217 return jsonify(post.to_json())218219 class BlogExtension:
85 unmodified lines