handleref tries to update version field on every model under reversion control
Closed this issue · 2 comments
ercpe commented
Hi,
we're in the process of integrating a library that depends on django-handleref in our application. Our application already uses django-reversion and most of our models are under control of reversion.
Our test suite now failes because handleref tries to update the version
field on every model under reversion control. The cause is the post_revision_commit
signal handler in https://github.com/20c/django-handleref/blob/main/src/django_handleref/models.py#L13.
The handler should perform an isinstance(vs.object, HandleRefModel)
before updating the version
field.