title: match string with database values in django
body: <p>I have a database table 'travel'.There is a column called <strong>travelclasss</strong> and it contains values '<strong>economy,business,firstclass</strong>'.I have a form</p>
  
  <pre><code>&lt;form id="search-form"&gt;
          FROM&lt;input type="text" name="f"&gt;&lt;br&gt;
          TO&lt;input type="text" name="t"&gt;&lt;br&gt;
          CLASS&lt;input type="text" name="c"&gt;&lt;br&gt;
          &lt;input type="submit" value="Search"&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>If I enter in my form CLASS field either economy 'or' business 'or' firstclass I want to check these names are in my database <strong>travelclasss</strong> column.</p>
  
  <p>I need implement it in django. How to check particular name is present in database using django.  </p>