None-type object returned for selected radiobutton
<p>I have a case where I want to use radio buttons as my query option so I can get correct query set according to selected radio button.
I can not find a way to get selected radio button value in form. There are a lot of info about using form class. what about simple html form. part of form is: </p>

<pre><code>&lt;label for="house-all-id"&gt;All&lt;/label&gt;
&lt;input type="radio" id="house-all-id" name="h-type" value="0"/&gt;
&lt;label for="house-orp-id"&gt;Just case one&lt;/label&gt;
&lt;input type="radio" id="house-orp-id" name="h-type" value="1"/&gt;
&lt;label for="house-inm-id"&gt;Just case two&lt;/label&gt;
&lt;input type="radio" id="house-inm-id" name="h-type" value="2"/&gt;
</code></pre>

<p>These radio-buttons are part of a from with another widgets to help my get correct QuerySet. In view:</p>

<pre><code>    h_type = request.POST.get('h_type')
</code></pre>

<p>This returns a none-type object. How can I get value of selected radio button?</p>