Why not just call list()
on the Queryset
?
answers_list = list(answers)
This will also evaluate the QuerySet
/run the query. You can then remove/add from that list.
More Related Contents:
- Django Cookies, how can I set them?
- Get model’s fields in Django
- Can django’s auth_user.username be varchar(75)? How could that be done?
- Manager isn’t available; User has been swapped for ‘pet.Person’
- Django: Query using contains each value in a list
- How to get the list of the authenticated users?
- Django: How do I add arbitrary html attributes to input fields on a form?
- Raise a validation error in a model’s save method in Django
- Overriding admin css in django
- SocketException: OS Error: Connection refused, errno = 111 in flutter using django backend
- Django Static files 404
- How can I get a favicon to show up in my django app?
- Django: show a ManyToManyField in a template?
- Django: ordering numerical value with order_by
- Access kwargs from a URL in a Django template
- How to register users in Django REST framework?
- How to do a multi-step form in Django?
- Example of Django Class-Based DeleteView
- Accelerate bulk insert using Django’s ORM?
- Pass request context to serializer from Viewset in Django Rest Framework
- Django: permission denied when trying to access database after restore (migration)
- UnicodeEncodeError: ‘ascii’ codec can’t encode character
- Django give Error 500 for all static files like CSS and Images, when DEBUG is False
- Setting default value for Foreign Key attribute
- Django REST Framework image upload
- ModelForm with OneToOneField in Django
- Django static files on heroku
- Django: dynamic database file
- Get type of Django form widget from within template
- How to simplify migrations in Django 1.7?