Traceback most recent call last File usr lib python2 site-packages dja

 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
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in _real_get_response
81. response = callback(request, *callback_args, **callback_kwargs)
File "/home/offline/django/muzx/news/views.py" in main_page
10. return object_list(request,**kwargs)
File "/usr/lib/python2.4/site-packages/django/views/generic/list_detail.py" in object_list
60. object_list = paginator.get_page(page_number - 1)
File "/usr/lib/python2.4/site-packages/django/core/paginator.py" in get_page
35. page_number = self.validate_page_number(page_number)
File "/usr/lib/python2.4/site-packages/django/core/paginator.py" in validate_page_number
30. if page_number < 0 or page_number > self.pages - 1:
File "/usr/lib/python2.4/site-packages/django/core/paginator.py" in _get_pages
82. hits = (self.hits - 1 - self.orphans)
File "/usr/lib/python2.4/site-packages/django/core/paginator.py" in _get_hits
77. self._hits = len(self.query_set)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in __len__
111. return len(self._get_data())
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in _get_data
482. self._result_cache = list(self.iterator())
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in iterator
180. select, sql, params = self._get_sql_clause()
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in _get_sql_clause
497. joins2, where2, params2 = self._filters.get_sql(opts)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in get_sql
719. joins2, where2, params2 = val.get_sql(opts)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in get_sql
770. return parse_lookup(self.kwargs.items(), opts)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in parse_lookup
925. joins2, where2, params2 = lookup_inner(path, lookup_type, value, opts, opts.db_table, None)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in lookup_inner
1007. field = find_field(name, current_opts.get_all_related_objects(), True)
File "/usr/lib/python2.4/site-packages/django/db/models/options.py" in get_all_related_objects
155. if f.rel and self == f.rel.to._meta: