-
- Downloads
[FIX] website: handle RequestUID case in slug
Before this commit, a 308 on a route with a modelconverter for a model that have a seo_name field will crash with an exception: Cannot iterate on RequestUID Another simplest solution was to use a with_user(SUPERUSER_ID) but in this case it bypass the security set and display the name of the record even if not yet published. How to reproduce: Create a 308 from /shop/<product> to /mag/<product> Unpublish product 10 Try to access /shop/product-10 You have an unmanaged '500 internal error" because slug_matching -> build -> to_url -> slug with a record with Requestuid as env._uid.
Please register or sign in to comment