I\'m trying to add some extra attributes to the elements of a QuerySet so I can use the extra information in templates, instead of hitting the database multiple times. Let m
I would assume calling .reverse on a queryset s what is causing your issues. try this:
books = Book.objects.filter(author__id=1) books_set = [] for book in books: book.price = 2 books_set.append(book) reverse = books_set.reverse()