You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm maintaining a plugin that, among other things, uses an m2m_changed handler for some parts of its functionality, and that handler issues write operations to the database.
As far as I know I need to make those write operations branch-aware. How can I determine the current branch in a signal handler? Is there some way to find the branch a specific request (i.e. found by the current_request method) is tied to a branch?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm maintaining a plugin that, among other things, uses an
m2m_changed
handler for some parts of its functionality, and that handler issues write operations to the database.As far as I know I need to make those write operations branch-aware. How can I determine the current branch in a signal handler? Is there some way to find the branch a specific request (i.e. found by the
current_request
method) is tied to a branch?Beta Was this translation helpful? Give feedback.
All reactions