Open ioana-chiorean opened 8 years ago
I think .reverse()
is an invalid call which makes the paginate tag invalid.
It is a better idea to reverse the list when looping it:
{% for obj in list reversed %}
This will make the following change:
{% for event in country_events reversed %}
By the way, my previous comment is not logically correct. This will reverse only the first page of events, which will lead to strange results.
There are two things that can be done:
reverse
without the brackets ()
. In Django, you can call methods from the template language as long as they don't have argumentsCheers!
@ioana-chiorean Are you able to try the alternatives @RadoRado offered?
If you don't have the time, let us know.
Thanks, @ioana-chiorean!
Have you tested this in your local copy? The tests are failing.
I will have a look at it tomorrow.