I've got three models that show some sort of activity on a website I'm making. Song, Vote and Comment. They all share a common column when
which shows when a record was created.
I want to show a list of activity based on all three models. In short I want to munge them together, sort by when
, and scrape off the first 10 records.
How I do this is the question. I know I could get 10 recods for each model, put them in a dictionary and sort by date (well, once I know how to sort by date in Python), but this seems fairly inefficient.