Hi, Am Sun, 10 Oct 2021 18:38:55 +0300 schrieb Shai Berger <s...@platonix.com>: > Why is a before-commit signal preferable to a vanilla Python > context-manager around the code? Or, if it is in the context of > requests, a middleware?
basically mostly because you can forget to put the context manager around it and because it might become very verbose adding context managers everywhere. Best Raphael -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20211012112913.26138880%40kvothe.