Adjusting admin.py to fit django 1.7