Update admin.py

Compibility to django 1.6