[Fixed]-Django site, getting error __init__() missing 1 required positional argument: 'request' when calling a view

1👍

it seems like you should write:

form = TransactionForm(request=request, instance=transaction)

instead of :

form = TransactionForm(request.POST, instance=transaction)

Leave a comment