[Answered ]-__init__() got multiple values for argument 'user'

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)

Leave a comment