hello, the following code produces a table with 15 rows as expected. the same code with "hits=paginator.hits" without comment sign results in: Exception Type: TypeError Exception Value: count() takes exactly one argument (0 given)
paginate_by = 15 paginator = ObjectPaginator(TMergeDoc().by_categories(), paginate_by) page = int(request.GET.get('page', 0)) objects = paginator.get_page(page) #hits=paginator.hits return render_to_response('show_categories/index.html', {'objects': objects, 'paginator':paginator }) if I try to see the paginator object in the web view, there is *no* object. how does this work? the paginator code inside a method without custom sql works fine -> I'm able to use the paginator attributes. 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 -~----------~----~----~----~------~----~------~--~---