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
At the moment there's no convenient way to push model changes outside of views. We can do this with something like:
pusher_backends = get_models_pusher_backends(model)
for pusher_backend in pusher_backends:
pusher_backend(view=self).push_change(...) # may need to mock view if we're using this outside of the view
However there must be a better way...
The text was updated successfully, but these errors were encountered:
Apart from the solution you mention, I have come up with 2 other APIs that might be nicer for our users. The first uses a util function that essentially wraps your solution:
At the moment there's no convenient way to push model changes outside of views. We can do this with something like:
However there must be a better way...
The text was updated successfully, but these errors were encountered: