The for tag can take an optional {% empty %}

The for tag can take an optional {% empty %},
https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#for-empty.