Cannot update a query once a slice has been taken.
Package:
django
59414

Exception Class:
TypeError
Raise code
def update(self, **kwargs):
"""
Update all elements in the current QuerySet, setting all the given
fields to the appropriate values.
"""
self._not_support_combined_queries('update')
if self.query.is_sliced:
raise TypeError('Cannot update a query once a slice has been taken.')
self._for_write = True
query = self.query.chain(sql.UpdateQuery)
query.add_update_values(kwargs)
# Clear any annotations so that they won't be present in subqueries.
query.annotations = {}
with transaction.mark_for_rollback_on_error(using=self.db):
rows = query.get_compiler(self.db).execute_sql(CURSOR)
Links to the raise (2)
https://github.com/django/django/blob/7cca22964c09e8dafc313a400c428242404d527a/django/db/models/query.py#L776 https://github.com/django/django/blob/7cca22964c09e8dafc313a400c428242404d527a/django/db/models/query.py#L796NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix