Fix storage.prefix doesn't exist in Django 1.7

So many unit tests are broken in Django 1.7 since commit
187a7a72bf72370c739f3675bef84532e524eaf1. This patch fixes it.