Changes between Version 1 and Version 2 of Ticket #34239
- Timestamp:
- Jan 2, 2023, 5:32:11 PM (23 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34239 – Description
v1 v2 1 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 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.3 What I'd like to propose is to allow users to type-hint a specific parameter and have django load the object automatically by pk or throw 404 if it doesn't exist. 4 4 5 5 {{{