Oooh, cool -- didn't know the "default" thing. I think I've just used `firstof` before:
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#firstof