You can pass your queryset to reversed:
last_ten = Messages.objects.filter(since=since).order_by('-id')[:10]
last_ten_in_ascending_order = reversed(last_ten)
More Related Contents:
- How can I combine two or more querysets in a Django view?
- Why does DEBUG=False setting make my django Static Files Access fail?
- What does on_delete do on Django models?
- how to upload multiple images to a blog post in django
- Where should signal handlers live in a django project?
- How do I create multiple model instances with Django Rest Framework?
- Creating email templates with Django
- Django get a QuerySet from array of id’s in specific order
- Django rest framework nested self-referential objects
- Django form field choices, adding an attribute
- How to ‘bulk update’ with Django?
- Django REST Framework: adding additional field to ModelSerializer
- Django multiprocessing and database connections
- Caching query results in django
- Create Custom Error Messages with Model Forms
- Raise a validation error in a model’s save method in Django
- Overriding admin css in django
- Why does django’s prefetch_related() only work with all() and not filter()?
- How to paginate Django with other get variables?
- Django Static files 404
- How can I get a favicon to show up in my django app?
- Django: show a ManyToManyField in a template?
- Getting ‘DatabaseOperations’ object has no attribute ‘geo_db_type’ error when doing a syncdb
- ImportError: Couldn’t import Django
- Django: ordering numerical value with order_by
- Get err_connection_refused accessing django running on wsl2 from Windows but can curl from Windows terminal
- How to do a multi-step form in Django?
- Example of Django Class-Based DeleteView
- Django admin DoesNotExist at /admin/
- Django: permission denied when trying to access database after restore (migration)