title: Python, Django: Alternative to a raw-sql-query
body: <p>Good evening,</p>
  <p>I would like to ask, if there's a different method to a raw sql query to update items by a certain condition inside my views.py? For example, I know I could do an insert query like this:</p>
  <p><strong>models.py</strong></p>
  <pre><code>class Person(models.Model):
      name = models.CharField()
      age = models.IntegerField()
      value = models.IntegerField()
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>def something(request):
      ...
      qs = Person(name=&quot;John Doe&quot;, age=34, value=10)
      qs.save()
      ...
  </code></pre>
  <p>Is there a similiar method for updating all &quot;Persons&quot; if they fit a certain condition?</p>
  <pre><code>...
  qs = Person(&quot;UPDATE Person SET value=5 WHERE age &lt; 30&quot;) # or something like this
  qs.save()
  ...
  </code></pre>
  <p>Thanks for all your help and advice and a great weekend to all of you!</p>