To speed up my admin page, I've decided to override my get_queryset()
with a raw query however it results in:
Database error: Something’s wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user.
Is there some step I'm missing?. I've already confirmed that the query works in PSQL so I don't see what's going wrong. I've tried cutting it down to just the following but it still errors out.
def get_queryset(self, request):
return MyObject.objects.raw('SELECT * FROM myapp_myobject')