kezzine / django-genericadmin

Automatically exported from code.google.com/p/django-genericadmin
0 stars 0 forks source link

AttributeError at /admin/obj_lookup/ #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
use genericadmin with trunk 

i fixed it by using request.GET

Original issue reported on code.google.com by iso...@gmail.com on 29 Aug 2008 at 11:59

Attachments:

GoogleCodeExporter commented 9 years ago
traceback on the bug:
Environment:

Request Method: GET
Request URL: http://localhost:8000/admin/obj_lookup/
Django Version: 1.0-beta_2-SVN-8715
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'simpleweb.polls',
 'simpleweb.pages',
 'simpleweb.SitesEx',
 'simpleweb.inherit',
 'simpleweb.genericadmin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware')

Traceback:
File "/usr/lib/python2.5/django/core/handlers/base.py" in get_response
  86.                 response = callback(request, *callback_args, **callback_kwargs)
File "/home/isotop/simpleweb/genericadmin/views.py" in generic_lookup
  33.         if request.has_key('content_type') and request.has_key('object_id'):

Exception Type: AttributeError at /admin/obj_lookup/
Exception Value: 'WSGIRequest' object has no attribute 'has_key'

Original comment by iso...@gmail.com on 30 Aug 2008 at 12:02