Browse Source
- Removed dependency on `get_admin_namespace` and replaced it with direct language-based URL redirection for admin login in both `AdminAccessMiddleware` and `enhanced_auth_middleware`. - Improved code clarity by utilizing Django's `get_language` to dynamically construct the redirect URL based on the user's language preference. - Enhanced user experience by ensuring consistent access to the admin login page across different languages.master
2 changed files with 11 additions and 9 deletions
Loading…
Reference in new issue