Opened 10 years ago

Closed 9 years ago

#3703 closed (fixed)

[patch] Add 'pk' property to models.Model

Reported by: Collin Grady <cgrady@…> Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Provides obj.pk as a property for the primary key, similar to how you can use .filter(pk=foo) to search based on the primary key.

Attachments (2)

pk_property.patch (523 bytes) - added by Collin Grady <cgrady@…> 10 years ago.
pk_property_with_tests.diff (1.6 KB) - added by jeromie@… 9 years ago.
Patch including tests and documentation

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Collin Grady <cgrady@…>

Attachment: pk_property.patch added

comment:1 Changed 10 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 10 years ago by Russell Keith-Magee

Component: Database wrapperCore framework
Needs documentation: set
Needs tests: set
Triage Stage: Ready for checkinAccepted

comment:3 Changed 9 years ago by anonymous

Owner: changed from nobody to jeromie

Changed 9 years ago by jeromie@…

Attachment: pk_property_with_tests.diff added

Patch including tests and documentation

comment:4 Changed 9 years ago by jeromie

Needs documentation: unset
Needs tests: unset
Owner: changed from jeromie to nobody
Triage Stage: AcceptedReady for checkin

comment:5 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [6346]) Fixed #3703 -- Added pk property to models. Thanks, Collin Grady and jeromie@….

Note: See TracTickets for help on using tickets.
Back to Top