How to avoid calling get_query_set()
Question
How can I make Django avoid calling ChangeList's get_query_set() method in file django.contrib.admin.views.main.py? I don't want to append any data, I want it to not call that method at all. Thanks.
Solution
I guess you could always subclass (or monkeypatch) the ChangeList
class and replace get_query_set()
with a dummy. I can't work out why you'd want to do that though - it would mean you wouldn't get any data in the changelist page.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow