Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Dmitrij Petters
Well that would require me to use simplejson.dumps(data) right? I need to use my custom serializer in order to do a deep serialization of the model to model dependencies. As far as I understand, serializers are meant to take querysets or something of the sort, not dictionaries containing various ki

Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Steve Holden
On 9/28/2010 10:42 PM, Dmitrij wrote: > I am trying to implement paging across ajax calls. The page should not > refresh when the user wants to see the next x num of results. > > Here is my problem. Returning the QuerySet is super simple. I just do > (sumaJson is custom) > > data = serializer