[Django]-How to store parent pointers and data in a django reversion?

2👍

So you have come to a conclusion prevent reversion from letting those signals fire

https://docs.djangoproject.com/en/dev/topics/signals/#disconnecting-signals

django-reversion itself uses Signal.connect and disconnect itself.
https://github.com/etianen/django-reversion/blob/b2f5f3362054b2b72a95bee1ed0dfe2dd2301cda/src/reversion/revisions.py

I see you have few options.

  1. find a good place to do disconnect/connect (I guess you would need to override reversion, but I don’t know much about it)
  2. (override reversion) exclude from registering certain signals such as haystack.
  3. (override haystack, reversion) set a flag on the being-saved object, and check the flag in the haystack signal to return right away.
👤eugene

Leave a comment