Fixed error due to admin.py using a defunct variable