Bad type-cast on is_staff