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,
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)
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:
>
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:
4 matches
Mail list logo