title: TypeError: float() argument must be a string or a number in Django distance
body: <p>I tried to get the value from my template which is <code>kmdistance</code> but it returns an error when I view the page.</p>
  
  <p>Here's the views.py</p>
  
  <pre><code>def display_maps(request):
      #bases for city proper
      pnt = ButuanMaps.objects.get(clandpin='162-03-0001-017-33').geom
  
      #landproperty__sownerid__id=5 is for government user
      kmdistance = request.GET.get("kmtocity", None)
      mysection = (request.GET.get("mysection", None))
      query_section = Section.objects.all().order_by('id')
      ...
      query_maps = ButuanMaps.objects.filter(landproperty__sownerid__id=5, geom__distance_lte=(pnt, D(km=kmdistance)), ssectionid__id=mysection)
      ...
  </code></pre>
  
  <p>Here's the template.html</p>
  
  <pre><code>  &lt;select name="kmtocity" class="form-control"&gt;
        &lt;option type="text" value="empty"&gt;Select Km. away from City Proper&lt;/option&gt;
        &lt;option value="1"&gt;1&lt;/option&gt;
        &lt;option value="5"&gt;5&lt;/option&gt;
        &lt;option value="10"&gt;10&lt;/option&gt;
        &lt;option value="15"&gt;15&lt;/option&gt;
        &lt;option value="20"&gt;20&lt;/option&gt;
     &lt;/select&gt;
  </code></pre>
  
  <p>It works fine when I tried putting the value in distance.</p>