Opened 7 years ago

Closed 7 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:


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

Download all attachments as: .zip

Change History (7)

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

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

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 7 years ago by russellm

  • Component changed from Database wrapper to Core framework
  • Needs documentation set
  • Needs tests set
  • Triage Stage changed from Ready for checkin to Accepted

comment:3 Changed 7 years ago by anonymous

  • Owner changed from nobody to jeromie

Changed 7 years ago by jeromie@…

Patch including tests and documentation

comment:4 Changed 7 years ago by jeromie

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from jeromie to nobody
  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.