mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
parent
bca0a1f32c
commit
efd93855d9
1 changed files with 2 additions and 2 deletions
|
@ -238,10 +238,10 @@ def shelve(request, username, shelf_id, book_id, reshelve=True):
|
||||||
def review(request):
|
def review(request):
|
||||||
''' create a book review note '''
|
''' create a book review note '''
|
||||||
form = forms.ReviewForm(request.POST)
|
form = forms.ReviewForm(request.POST)
|
||||||
|
book_identifier = request.POST.get('book')
|
||||||
# TODO: better failure behavior
|
# TODO: better failure behavior
|
||||||
if not form.is_valid():
|
if not form.is_valid():
|
||||||
return redirect('/')
|
return redirect('/book/%s' % book_identifier)
|
||||||
book_identifier = request.POST.get('book')
|
|
||||||
|
|
||||||
# TODO: validation, htmlification
|
# TODO: validation, htmlification
|
||||||
name = form.data.get('name')
|
name = form.data.get('name')
|
||||||
|
|
Loading…
Reference in a new issue