title: django select_for_update and select_related on same query?
body: <p>Does anyone know if you can do both the .select_for_update() and .select_related() statements in a single query? Such as:</p>
  
  <pre><code>employee = get_object_or_404(Employee.objects.select_for_update().
                                select_related(‘company’), pk=3)
  </code></pre>
  
  <p>It seemed to work fine in one place in my code, but a second usage threw an "InternalError: current transaction is aborted" for a series of unit tests. Removing the .select_related and leaving just .select_for_update made the error go away, but I don't know why. I'd like to use them both to optimize my code, but if forced to choose, I'll pick select_for_update.  Wondering if there's a way I can use both. Using postgres and django 1.9. Thanks!</p>