djangosnippets.org: Latest snippets tagged with 'none'https://djangosnippets.org/tags/none/2009-12-08T16:06:43.239323-06:00TrueNoneField
2009-12-08T16:06:43.239323-06:00divermanhttps://djangosnippets.org/snippets/1831/<p>This custom model field is a variant of NullBooleanField, that stores only True and None (NULL) values. False is stored as NULL.</p>
<p>It's usefull for special purposes like unique/unique_together.</p>
<p>One small problem is here, that False is not lookuped as None.</p>
<p>This snippets is a response to <a href="http://www.djangosnippets.org/snippets/1830/">1830</a></p>
Freely redistributablenone if empty list decorator
2008-08-27T15:08:33.615287-05:00laxuhttps://djangosnippets.org/snippets/1005/<p>this avoids checking if POST contains data for forms. see source for usage example</p>
Freely redistributable