title: Receiving the requests and using If else statements on Queries with None in Python GAE
body: <p>I am trying to mix and match everything, and it seems like I can't find the right answer.</p>
  
  <p>I am trying to use filter on Queries. But the result is as follows: if <code>q!=None</code>, it generates a filter. But, if <code>q==None</code>, it would not display any data after using <code>run()</code></p>
  
  <pre><code>q = self.request.get('q')
  if q!=None:
    custQuery = db.Query(Customer)
    custQuery.filter('license = ',q)
  elif q==None:
    custQuery = Customer.all()
  </code></pre>
  
  <p>But, if I replace all of them with just the following code below, it displays all the data. </p>
  
  <pre><code>custQuery = db.Query(Customer)
  </code></pre>
  
  <p>How do I display data if there is no q/query in an if-else statement?</p>