django-pghistory icon indicating copy to clipboard operation
django-pghistory copied to clipboard

Fix events queryset failing for custom model PKs

Open lokhman opened this issue 9 months ago • 0 comments

If a tracked model has a custom private key field, which has a different database representation to the instance value, the queryset for pghistory.models.Event fails.

Closes: https://github.com/Opus10/django-pghistory/issues/126

Additionally, this fixes middleware to store prepared user PK value in the context.

Type: bug

lokhman avatar May 09 '24 13:05 lokhman