Snippet: ‘exclusive boolean’ field for Django models

“Sometimes you want to be able to make one (and only one) row in your model ‘featured’ or ‘the default one’.”

I think the snippet is fairly self explanatory:

http://www.djangosnippets.org/snippets/1830/