title: django template if or statement
body: <p>Basically to make this quick and simple, I'm looking to run an XOR conditional in django template. Before you ask why don't I just do it in the code, this isn't an option. </p>
  
  <p>Basically I need to check if a user is in one of two many-to-many objects.</p>
  
  <pre><code>req.accepted.all 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>req.declined.all
  </code></pre>
  
  <p>Now they can only be in one or the other (hence the XOR conditional). From the looking around on the docs the only thing I can figure out is the following</p>
  
  <pre><code>{% if user.username in req.accepted.all or req.declined.all %}
  </code></pre>
  
  <p>The problem I'm having here is that if user.username does indeed appear in req.accepted.all then it escapes the conditional but if it's in req.declined.all then it will follow the conditional clause.</p>
  
  <p>Am I missing something here?</p>