toastdriven/django-tastypie — pull request #999 by kdazzle (2013-08-06 23:08:22+00:00)
Title: Raise ApiFieldError if null or blank values aren't allowed in a field

As it is, Tastypie sets fields that aren't allowed to be null as null, creating database integrity errors down the line. This patch raises an error, as seems to be the original intention. The code was also gussied up a bit.