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:

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:

Custom SQL/Paginator problems

2006-11-06 Thread soundseeker
Hello, here's a django/python newbie problem, which I could not resolve after spending some time with reading and testing. Assuming a method in my models.py class VMergeDocsInfo(models.Model): .. def by_categories(self): from django.db import connection

custom sql/paginator problems

2006-11-04 Thread soundseeker
hi, some newbie questions here... after spending much time with reading/testing I still have no solution; some help is needed and appreciated. here's the problem: having a class definition with a custom sql statement: class VMergeDocsInfo(models.Model): def by_categories(self):