2👍
✅
if you set on the initializer the user argument, you need to use it.
if request.method == 'POST':
form = TransactionForm(user=request.user, data=request.POST)
Source:stackexchange.com