1👍
✅
In your forms init
method you defined the parameters as:
def __init__(self, user, *args, **kwargs):
So your first parameter must be user
instead of request.POST
. So you can change
form = WorkLogForm(request.POST, user=request.user)
To
form = WorkLogForm(request.user, request.POST)
Source:stackexchange.com