ViewSet Initialization #8090
Unanswered
saloni30agr
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While facing an issue with uwsgi, Django, and DRF, which is described here on the link: https://stackoverflow.com/questions/68443665/django-custom-manager-drf-uwsgi-setup-incorrectly-applied-queryset-filters,
I was curious to know how and when ViewSets are initialized. ViewSets querysets are evaluated just once at the time of startup, and by mistake, if you add a filter to these querysets initialization, then, querysets remain modified until the next restart.
It would be of great help if someone from the community can brief me about how this complete process works.
Beta Was this translation helpful? Give feedback.
All reactions