[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
|
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.
Change History
(7)
Triage Stage: |
Unreviewed → Ready for checkin
|
Component: |
Database wrapper → Core framework
|
Needs documentation: |
set
|
Needs tests: |
set
|
Triage Stage: |
Ready for checkin → Accepted
|
Owner: |
changed from nobody to jeromie
|
Needs documentation: |
unset
|
Needs tests: |
unset
|
Owner: |
changed from jeromie to nobody
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Patch including tests and documentation