Doctests & Metaclasses & Multiprocessing, Oh My!
I've been programming in Python for more than a decade, but it's only now that I have had to bring out the big guns: writing a metaclass.
Tidy Caseless Ordering in Django
Sorting by name in Django is a common admin annoyance. By default upper-case names come before lower-case ones because of their raw ASCII encodings. This isn't fun to try and explain to clients. For years I've ordered my models using a forced lower-case slug, but sometimes you need the big guns: database functions. Let's use that powerful ordering, while keeping our code nice and neat.