Changes between Initial Version and Version 1 of Ticket #28839
- Timestamp:
- Nov 27, 2017, 12:41:28 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28839
- Property Cc added
- Property Summary Model.__repr__ should include the pk → Model.__repr__() should include the pk
- Property Type New feature → Cleanup/optimization
-
Ticket #28839 – Description
initial v1 1 1 This was proposed on https://code.djangoproject.com/ticket/1055 , but it was fixed without including the PK. It was also suggested in https://code.djangoproject.com/ticket/20448 , but ignored. 2 2 3 I think the PK is very valuable as __repr__, as it allows you to retrieve the object unambiguously; while __str__ really can't have a good default implementation.3 I think the PK is very valuable as `__repr__`, as it allows you to retrieve the object unambiguously; while __str__ really can't have a good default implementation.