Update admin.py

make it compatible to django 1.6
Merge pull request #3 from kakulukia/master

let it play nice with django 1.6