Opened 18 years ago

Closed 17 years ago

#3703 closed (fixed)

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

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

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@…> 18 years ago.
pk_property_with_tests.diff (1.6 KB ) - added by jeromie@… 17 years ago.
Patch including tests and documentation

Download all attachments as: .zip

Change History (7)

by Collin Grady <cgrady@…>, 18 years ago

Attachment: pk_property.patch added

comment:1 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Russell Keith-Magee, 18 years ago

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

comment:3 by anonymous, 17 years ago

Owner: changed from nobody to jeromie

by jeromie@…, 17 years ago

Attachment: pk_property_with_tests.diff added

Patch including tests and documentation

comment:4 by jeromie, 17 years ago

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

comment:5 by Malcolm Tredinnick, 17 years ago

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