title: Django error 'too many values to unpack' in objects.get(id)
body: <p>I have url like this <a href="http://gagandeepdesk/2690/" rel="nofollow">http://gagandeepdesk/2690/</a> which I am filtering with urls.py file and sending 2690 as one of the parameters to the function.</p>
  
  <p>my urls.py filter looks like this,</p>
  
  <pre><code>url(r'^(\d+)/', 'scango.scanner.views.download'),
  </code></pre>
  
  <p>And that function looks like this,</p>
  
  <pre><code>def download(request, MediaId):
      media = Media.objects.get(id=int(MediaId))
      #print media
      return HttpResponse(FileIterWrapper(open(media.path)))
  </code></pre>
  
  <p>I am getting error 'too many values to unpack' on line </p>
  
  <pre><code>media = Media.objects.get(id=int(MediaId))
  </code></pre>
  
  <p>I also tried running this function standalone without request object and it is running perfectly fine. So, I am confused what I have done wrong here.</p>
  
  <p>Environment:</p>
  
  <pre><code>Request Method: GET
  Request URL: http://gagandeepdesk/2690/
  
  Django Version: 1.3
  Python Version: 2.7.1
  Installed Applications:
  ['haystack',
   'scanner',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.sites',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.admin']
  Installed Middleware:
  ('django.middleware.common.CommonMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware')
  </code></pre>
  
  <p>Traceback:</p>
  
  <pre><code>File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response
    111.                         response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Users\gagasing\Desktop\ideas\scango\..\scango\scanner\views.py" in download
    21.   media = Media.objects.get(id=int(MediaId))
  File "C:\Python27\lib\site-packages\django\db\models\manager.py" in get
    132.         return self.get_query_set().get(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\db\models\query.py" in get
    343.         clone = self.filter(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\db\models\query.py" in filter
    552.         return self._filter_or_exclude(False, *args, **kwargs)
  File "C:\Python27\lib\site-packages\django\db\models\query.py" in _filter_or_exclude
    570.             clone.query.add_q(Q(*args, **kwargs))
  File "C:\Python27\lib\site-packages\django\db\models\sql\query.py" in add_q
    1170.                             can_reuse=used_aliases, force_having=force_having)
  File "C:\Python27\lib\site-packages\django\db\models\sql\query.py" in add_filter
    1013.         arg, value = filter_expr
  
  Exception Type: ValueError at /2690/
  Exception Value: too many values to unpack
  </code></pre>