Changes between Version 1 and Version 2 of Ticket #34239


Ignore:
Timestamp:
Jan 2, 2023, 5:32:11 PM (18 months ago)
Author:
Aldo Mateli
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34239 – Description

    v1 v2  
    11In 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.
    22
    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.
     3What 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.
    44
    55{{{
Back to Top