cleaned up admin.py file code