upgrated admin.py