﻿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
27720	Confusing error message when creating a model with unspecified attributes that have no defaults	sanaani	nobody	"Using the example project at https://docs.djangoproject.com/en/1.10/intro/tutorial02/.

The example project says to instantiate a model in this way:
`q = Question(question_text=""What's new?"", pub_date=timezone.now())`

However, if you do something silly like not assigning attributes:
`q = Question(""What's new?"", timezone.now())`

The model will still instantiate. What's super confusing is that if you forget to type in the attributes, then apply
`q.save()`

You get the bizarre error `ValueError: invalid literal for int() with base 10: 'Question'`

If a model object is created without an assigned attribute and the missing attribute has no default specified, then some type of warning should appear. I wasted about 3 hours today figuring out this dumb mistake; the error message isn't related to the initial error."	Cleanup/optimization	closed	Database layer (models, ORM)	1.10	Normal	needsinfo	model		Unreviewed	0	0	0	0	0	0
