Fix collectstatic for Django 1.4

Fixes bug 2752