Re: Paginator - JSON - Serializing related issue

2008-12-05 Thread chachra
Why don't you create a new list l = [] put the pagenumber etc. only a map and append to list Then iterate over your objects and append them too. Then use simplejson.dumps() and job done ? Works for me! Cheers! Sumit On Oct 20, 5:48 am, "H. de Vries" <[EMAIL PROTECTED]> wrote: > Hey Rajesh,

Re: Paginator - JSON - Serializing related issue

2008-10-20 Thread H. de Vries
Hey Rajesh, Thank you so much for your comment. Somehow Google didn't sent me a message that I had a reply on my post, so that's why I'm late with my reply. I think your solution looks neat, but this way I would still need 2 ajax requests wouldn't I? Doesn't self.options.pop('fields', None)

Re: Paginator - JSON - Serializing related issue

2008-10-02 Thread Rajesh Dhawan
Hi, > I have the following: > [snip] > def people_json(request): > userobjects = User.objects.filter(is_superuser=False).extra(order_by > = ['auth_user.username+0']) > p = Paginator(userobjects, 10) > pagenumber = request.POST.get('pagenumber', 1) > try: >

Paginator - JSON - Serializing related issue

2008-10-02 Thread H. de Vries
Hey everyone, I have the following: [snip] def people_json(request): userobjects = User.objects.filter(is_superuser=False).extra(order_by = ['auth_user.username+0']) p = Paginator(userobjects, 10) pagenumber = request.POST.get('pagenumber', 1) try: