How to resolve "TypeError: __init__() missing 1 required positional argument: 'user'" in django?

okay thanks, [adamchainz

Please reply on this thread if you know:- how can I also show stock message with there location like “Added %s items to stock with %s location”?