[#566] Remove part of admin.py accidentally added from old code