Re: Custom SQL/Paginator problems

2006-11-08 Thread soundseeker

> Hello soundseeker!
> On Mon, 06 Nov 2006 02:20:25 -0800 you wrote:
>
> > def show_categories(request, col, direction):
> > paginate_by = 15
> > paginator =
> > ObjectPaginator(VMergeDocsInfo.objects.all().by_categories(),
> > paginate_by)
>
> Maybe something like this: VMergeDocsInfo.objects.by_categories()?
>
hello grigory,

that's what happen:
Exception Type: AttributeError
Exception Value:'Manager' object has no attribute 'by_categories'

thank you,
robert


--~--~-~--~~~---~--~~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Custom SQL/Paginator problems

2006-11-08 Thread Grigory Fateyev

Hello soundseeker!
On Mon, 06 Nov 2006 02:20:25 -0800 you wrote:

> def show_categories(request, col, direction):
>   paginate_by = 15
>   paginator =
> ObjectPaginator(VMergeDocsInfo.objects.all().by_categories(),
> paginate_by)

Maybe something like this: VMergeDocsInfo.objects.by_categories()?

-- 
Всего наилучшего! Григорий
greg [at] anastasia [dot] ru
Письмо отправлено: 2006/11/08 13:54

--~--~-~--~~~---~--~~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---