Closed riquedev closed 2 years ago
There is a method hits_in_last
for the HitCount
model. I think if you can find a way to use this as a way to annotate
the hitcount
objects, you should be able to achieve what you want.
Please let me know if this doesn't work or you happen to figure out a better way.
I'm having trouble sorting the objects with the highest hits in a given period, I can't come up with a way to do it. Currently I filter only the most "viewed" of the entire period, I use the syntax below: