I get a list of objects like this
return Post.objects.filter(categoria=categoria)
And I send this to the template. I show them in the template as follows
{% for p in posts reversed %}
Thus, I get new messages from above. It works in about 99% of cases, but it doesn’t work randomly if it shows the last message below a senior post. The dates are correct, the last message shows that it has the latest date, but it appears below some other old messages.
Nothing special happens when it fails, I think it might be some kind of obscure bug in Django.
Any ideas on what could be causing this?
source
share