﻿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
17388	Custom model field methods need to handle None, doc should say so	anonymous	nobody	"Wrote a set of custom model fields to handle ASN.1 DER objects encoded as SQL BLOBs (don't ask).  One of those custom model fields is used in a model which allows the field defined with that custom model field to be null.  Boom, backtrace, bits everywhere.

In retrospect it's obvious that if the field is allowed to be null, the .to_python() and .get_prep_value() methods have to support None, but it wasn't obvious up front from the documentation.

Not a big deal, the code worked once I figured this out.  I'm reporting this in the hope that it might save somebody else a bit of frustration someday.

Many thanks for a great package.
"	Cleanup/optimization	closed	Documentation	1.3	Normal	fixed			Accepted	0	0	0	0	1	0
