title: GAE query empty on first try, not on second
body: <p>I have a form that submits POST data to a handler, creates and puts a datastore entry called Item. Then it redirects the page and a GET request is sent where the datastore entry is queried as such:</p>
  
  <pre><code>    query = Item.query()
      userLessons = query.filter(Item.author == thisUser)
      itemQuery = userLessons.filter(Item.name == itemName).fetch(1)
      desiredItem = itemQuery[0]
  </code></pre>
  
  <p>The rendered page results in an error <code>UnboundLocalError: local variable 'desiredItem' referenced before assignment</code>. If I simply refresh the page and send another GET request the datastore entry is magically present. How is this possible? I tried adding the same query to the bottom of the POST before the redirect after putting the Item, and I get the same error. Is there a better way to query?</p>