Monday, August 29, 2011

Re: Model rowset split

You'd better offer more info about your question

On Mon, Aug 29, 2011 at 6:26 PM, kooliah <kooliah@djeve.sites.djangohosting.ch> wrote:
With

recset = mydb.all()
len(recset)
2000

I would like to split into x rowset with the same attributes and methods but 2000/x records.

I tried slicing but gave me errors

Thanks to all

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment