Answer the question
In order to leave comments, you need to log in
How to save queryset?
Good evening forum users. Question trace character.
There is a standard model:
class model_(models.Model):
name = models.CharField("Name", max_length=10, null=False, blank=False)
look = models.BooleanField(default=False)
_buffer = model_.objects.filter(look=False)
for item in _buffer:
item.look = True
item.save()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question