3👍
def board(request, board_id, board_name):
bad = RedirectIfWrong(request, board_id, board_name)
if bad:
return bad
...
return render(request, 'forums/board.html', {'board': board})
1👍
Add the return
def board(request, board_id, board_name):
return RedirectIfWrong(request, board_id, board_name)
# ^^^^
- [Django]-Python – Building wheel for lxml (setup.py) … error
- [Django]-TypeError: 'datetime.date' object has no attribute '__getitem__'
- [Django]-Django migration hell, dropped a table. Tried to get it back
- [Django]-Python/Django: RelatedObjectDoesNotExist: Cart has no user
Source:stackexchange.com