﻿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
2871	DateTime fields are not checked when updating object	mikhail@…	nobody	"I created an object, but after that I updated it in Django admin and edited DateTimeField to 2006-02-31 00:00:00. In database there is 0000-00-00 00:00:00, and I get an exception when refering to object:

{{{
ValueError at /games/game/1/
year is out of range
Request Method: 	POST
Request URL: 	http://localhost:8000/games/game/1/
Exception Type: 	ValueError
Exception Value: 	year is out of range
Exception Location: 	/usr/lib/python2.4/site-packages/MySQLdb/connections.py in defaulterrorhandler, line 33
}}}

Please verify that the date is correct before inserting/updating. See function time.strptime in Python.

Also IntegerField (and PositiveIntegerField) is not checked but simply substituted by database to 2^31-1 if larger during inserting/updating."	defect	closed	contrib.admin		normal	worksforme			Accepted	0	0	0	0	0	0
