clean code - admin.py