Skip to content
Myr

Merge pull request #4883 from Dosenpfand/doc-extension-dev-2.2.x

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

authored by David Lord · committed by GitHub · parents 618fdc8, 9a294a6 · 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.

Trailers

  • Documentation: Fix class-based views example for Extension Development

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