#8565: Comments should use object_id instead of object_pk -------------------------------------+------------------------------------- Reporter: baumer1122 | Owner: nobody Type: Uncategorized | Status: reopened Component: contrib.comments | Version: SVN Severity: Normal | Resolution: Keywords: comments generic | Triage Stage: object_pk object_id | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by anonymous):
* status: closed => reopened * severity: => Normal * type: => Uncategorized * easy: => 0 * ui_ux: => 0 * resolution: duplicate => Comment: I don't see how this is a duplicate of 8554, which has to do with casting the output of object_pk to text. The issue here is the use of "object_pk" instead of "object_id" has the field name. This non-standard field name requires anyone who extends it and uses GenericRelation back to use object_id_field="object_pk". This isn't documented anywhere either. -- Ticket URL: <https://code.djangoproject.com/ticket/8565#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.