Environment Request Method GET Request URL http 127 8000 task Django V

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/task/1/
Django Version: 1.0.2 final
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'lib',
'tasks',
'reference',
'files']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
86. response = callback(request, *callback_args, **callback_kwargs)
File "/home/marat/dev/erp/apps/lib/decorators.py" in wrapper
9. output = func(request, *args, **kw)
File "/home/marat/dev/erp/apps/tasks/views.py" in task
23. task = get_object_or_404(Task.objects.select_related(), pk=object_id)
File "/usr/lib/python2.5/site-packages/django/shortcuts/__init__.py" in get_object_or_404
46. return queryset.get(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py" in get
303. clone = self.filter(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py" in filter
489. return self._filter_or_exclude(False, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py" in _filter_or_exclude
507. clone.query.add_q(Q(*args, **kwargs))
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py" in add_q
1258. can_reuse=used_aliases)
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py" in add_filter
1201. self.where.add((alias, col, field, lookup_type, value), connector)
File "/usr/lib/python2.5/site-packages/django/db/models/sql/where.py" in add
48. params = field.get_db_prep_lookup(lookup_type, value)
File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py" in get_db_prep_lookup
202. return [self.get_db_prep_value(value)]
File "/usr/lib/python2.5/site-packages/django/db/models/fields/__init__.py" in get_db_prep_value
353. return int(value)
Exception Type: ValueError at /task/1/
Exception Value: invalid literal for int() with base 10: ''