title: Django HayStack Get Parameter from URL and update default query accordingly
body: <p>I have implemented the search functionality using haystack + solar in django, now what the scene is I have another page, that will use the same functionality but one differences.</p>
  
  <p><code>1st module - http://127.0.0.1:8000/users/</code></p>
  
  <p>the module displays all registered users then search is functional on this module, </p>
  
  <p><code>2nd module - http://127.0.0.1:8000/users/46000/</code></p>
  
  <p>now what this will done, it will first filter all users who from city code 46000 then search will functional on it.</p>
  
  <p>Now i wanted to know how can i do with using same module or inherit module 1 or any other idea to minimize code?</p>
  
  <p>what i want is that on module 1, can i check if there is an <code>url parameter</code> then update the default query else not? how to do this ? </p>
  
  <p>what i have do is </p>
  
  <pre><code>def __call__(self, request, city_code = None):
          if city_code == None:
              print 'taqi'
          else:
              print city_code
  </code></pre>
  
  <p>for <code>http://127.0.0.1:8000/users/</code> it print taqi on the console and for <code>http://127.0.0.1:8000/users/46000/</code></p>
  
  <p>the values of <code>city_code</code> it get this in <code>saerch_view</code> method of <code>search_view_factory</code> class, but now where to pass this value to <code>change default query set</code>?</p>