docs: fix typos in errorhandling.rst and views.rst
This commit is contained in:
parent
36e4a824f3
commit
fbdfa2927f
2 changed files with 4 additions and 4 deletions
|
|
@ -112,7 +112,7 @@ function.
|
|||
self.model = model
|
||||
self.template = f"{model.__name__.lower()}/detail.html"
|
||||
|
||||
def dispatch_request(self, id)
|
||||
def dispatch_request(self, id):
|
||||
item = self.model.query.get_or_404(id)
|
||||
return render_template(self.template, item=item)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue