79222269

Date: 2024-11-25 08:51:38
Score: 2.5
Natty:
Report link

Wrap __stream into a class and define a method named close where you can write your logic. The close method will be registered in _resource_closers, and Django will call the methods in _resource_closers sequentially when the connection ends.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: yychzjl