How do you run an OR query in Peewee ORM?
<p>I'd like to run a query for a user based on username or email address.</p>

<p>I must be missing it, but I can't find how to run an <code>OR</code> query in the peewee documentation. How do you do that?</p>

<p>From the <a href="http://docs.peewee-orm.com/en/latest/peewee/querying.html#filtering-records">documentation</a></p>

<blockquote>
  <p>If you want to express a complex query, use parentheses and pythonâs bitwise or and and operators:</p>
</blockquote>

<pre><code>&gt;&gt;&gt; Tweet.select().join(User).where(
...     (User.username == 'Charlie') |
...     (User.username == 'Peewee Herman')
... )
</code></pre>

python peewee