django-pghistory
django-pghistory copied to clipboard
Fix events queryset failing for custom model PKs
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