On Tuesday, April 26, 2011 2:32:35 PM UTC+1, Czare1 wrote:
>
> Once for a while I get very strange error. It's listed below. I 
>
> Traceback (most recent call last): 
>
>   File "/usr/local/lib/python2.7/site-packages/django/core/handlers/ 
> base.py", line 111, in get_response 
>     response = callback(request, *callback_args, **callback_kwargs) 
>
>   File "/usr/local/www/apache22/django-apps/religia_test_pl/frontend/ 
> views.py", line 125, in standard_page 
>     article = 
> get_object_or_404(Page.objects.active_with_expired().select_related(depth=1), 
>
> id=page_id) 
>
>   File "/usr/local/lib/python2.7/site-packages/django/shortcuts/ 
> __init__.py", line 113, in get_object_or_404 
>     return queryset.get(*args, **kwargs) 
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/ 
> query.py", line 349, in get 
>     % self.model._meta.object_name) 
>
> TypeError: 'exceptions.IndexError' object is not callable 
>
>
<snip>

The error appears to be in your manager's `active_with_expired` method, 
which you have not posted.
--
DR. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to