Rails has Bullet[0] to help identify and warn you against N+1
Does Django have anything active? Quick search revealed nplusone[1] but its been dead since 2018.
If I understand it correctly, that's what [django-seal](https://github.com/charettes/django-seal) does.