Changes between Initial Version and Version 1 of Ticket #34239
- Timestamp:
- Jan 2, 2023, 3:37:01 PM (23 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34239 – Description
initial v1 1 In this ticket I'd like to propose a new which loads models from parameter information. A common pattern in views is to have a primary key or candidate key to locate a specific record via get_object_or_404.1 In this ticket I'd like to propose a new feature which loads models from parameter information. A common pattern in views is to have a primary key or candidate key to locate a specific record via get_object_or_404. 2 2 3 3 What I'd like to propose is to allow users to type-hint a specific parameter and have django load the object automatically or throw 404 if it doesn't exist.