Check permissions automatically on form save
This commit is contained in:
parent
2894aa37a2
commit
8f79b362f8
10 changed files with 19 additions and 23 deletions
|
@ -159,7 +159,7 @@ class ReadThrough(View):
|
|||
models.ReadThrough, id=request.POST.get("id")
|
||||
)
|
||||
return TemplateResponse(request, "readthrough/readthrough.html", data)
|
||||
form.save()
|
||||
form.save(request)
|
||||
return redirect("book", book_id)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue