title: How to use select_for_update to 'get' a Query in Django?
body: <p>As the Django Documentation says, <a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#select-for-update" rel="nofollow noreferrer"><code>select_for_update</code></a> returns a <code>Queryset</code>. But <code>get</code> does not. Now I have a query which I am sure is going to return only one tuple. But I also need to acquire locks for this transaction. So I am doing something like:</p>
  <pre><code>ob = MyModel.objects.select_for_update().filter(some conditions)
  </code></pre>
  <p>Now I need to modify some values of <code>ob</code>. But <code>ob</code> is a <code>Queryset</code>. This seems pretty simple, but beats me. I'm pretty new to Django. Some advice please.</p>