Django 1.4 support.

Updated so that it works on Django 1.4 with no ADMIN_MEDIA_PREFIX set.