Fix to admin to support Django >= 1.6