ListView without queryset

Hello everyone,

I am trying to increase performance in a view that has to render a list of events. Currently, I populate a database table on the fly and with a generic list view I show it. However, since it has to do a dababase bulk insert it takes few seconds. I wonder if there is a way -since I have the information in a list in memory- to use the ListView not having to create the database table and the respective queryset. I mean to render the LisView directly from the list structure that I have in memory. Is it possible ?

I would appreciate if anyone can give me a hand with this since I have not found any information in google regarding this issue.

Best regards.

Can you define an empty queryset for the ListView and just iterate through your list in the template?

def get_queryset(self):
    return ModelName.objects.none()