def modify(request): board = Board() board.id = request.POST['id'] board.title = request.POST['title'] board.content = request.POST['content'] #board.user = (User.objects.filter(id=request.session.get('authuser')['id']).filter( password=request.session.get('authuser')['password'])) board.save() return render(request, 'board/view?id =' + request.POST['id'])
def delete(request): board = Board() board.id = request.GET['id'] board.delete() return HttpResponseRedirect("/board/")