﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29516	Rephrase error message when passing incorrect kwarg to model constructor	Federico Bond	Federico Bond	"When passing an incorrect keyword argument to a model constructor, the __init__ method will throw an error like this:

{{{
TypeError: 'x' is an invalid keyword argument for this function
}}}

It takes a couple of seconds to notice what ""this function"" refers to, especially if the call is behind some abstraction like factory_boy. You have to scroll several levels up the stack trace to notice the offender. I propose to change this message to: 

{{{
TypeError: 'x' is an invalid keyword argument for ModelName
}}}

I can submit a pull request once the ticket is accepted."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed	error message		Accepted	1	0	0	0	0	0
