Update admin.py to be compatible with django 1.6