﻿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
20205	PositiveIntegerfield does not handle empty values well	anonymous	Jacob Walls	"When using a model PositiveIntegerField with blank=True and null=True, ''  (empty string) is not allowed as a blank response value.  An extra manual step seems needlessly necessary to convert an empty string (say, received from a form) to convert to python None value.  Shouldn't this be fixed in to_get_prep_value()?  This is usually not the case for CharFields, TextFields or some of the other model fields.  Here is the exception:

{{{
Exception Value: 	

invalid literal for int() with base 10: ''

Exception Location: .../django/db/models/fields/__init__.py in get_prep_value, line 991
}}}

It seems an update to IntegerField's get_prep_value or to_python may help."	Bug	closed	Database layer (models, ORM)	dev	Normal	wontfix		bmispelon@… amizya@… eromijn@… timograham@… Zach	Accepted	1	0	0	0	0	0
