django-simple-history
django-simple-history copied to clipboard
as_of() and m2m fields - response gives non_historic values
as_of() and m2m fields
receives in response the current non-history values for the m2m fields, how is it right to use as_of() with m2m fields?
I'm fairly sure this is a bug with the same cause as #1063 - which seems to be that each history record's instance
property doesn't provide any related managers for the historical values of the M2M fields.
I started working on a fix around the time that issue was opened, but haven't gotten around to finish it yet, unfortunately.
I will temporarily query the historical database with a separate query. Thanks.
Hello, I have the same problem. @ddabble is there a fix or a workaround? Thanks
Hi,
I read by separate query from historictables and add/replace in result