title: Django : AttributeError: 'unicode' object has no attribute 'objects'
body: <p>views.py :</p>
  
  <pre><code>def submit_upload(request,):
  
      if request.method == 'POST': 
          form = AerialForm(request.POST)
          id_key = form.data['id_key']
          year_id = form.data['year_id']
          year = Year.objects.get(year_id=year_id)
  
          series_id = form['series_id'].value()
          q_series = Series.objects.get(series_id=series_id)
          s_name = q_series.series.lower()
  
          table_name = s_name+'_photocenter_'+year.year_name
  
          query = table_name.objects.filter(ID_KEY=id_key)
  </code></pre>
  
  <p>from my code above, I want to get value from <code>query</code> and when I run the code, i get this error : </p>
  
  <pre><code>    query = table_name.objects.filter(ID_KEY=id_key)
  
  AttributeError: 'unicode' object has no attribute 'objects'
  </code></pre>