News for hackers. Stuff that matters.
Re:Ban 1+N in Django by Suor on Sunday March 26, 2023 @08:49PM (#35321523)
Should be easy enough to implement. You only need a context manager that adds 1 to some threadlocal flag on enter and subrracts on exit then check this flag in the monkey patch. Not sure how costly that will be though.
Re:Ban 1+N in Django by Suor on Sunday March 26, 2023 @08:51PM (#35321537)