Fixes: 1) Correct handling of initial selection when lookup value is invalid or missing; Extra: 1) Refactor related admin template and Python code to improve readability and maintainability; 2) Align variable names and code style for consistency.