none if empty list decorator
this avoids checking if POST contains data for forms. see source for usage example
- decorator
- list
- empty
- none
this avoids checking if POST contains data for forms. see source for usage example
This custom model field is a variant of NullBooleanField, that stores only True and None (NULL) values. False is stored as NULL. It's usefull for special purposes like unique/unique_together. One small problem is here, that False is not lookuped as None. This snippets is a response to [1830](http://www.djangosnippets.org/snippets/1830/)