fix AttributeError at /admin