summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-08 08:44:17 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-10-08 08:44:17 +0000
commit4b687d01ba24f0816aa10b9c89c35ee909bb9ee5 (patch)
treec0ae51b78a3b3fbc80d039a0cbb3a036625c045a /docs/_ext
parent09d84c4d40d1d9796f1d0f52bc3ea1bb93a68435 (diff)
[1.0.X] Fixed #6748 -- When printing the repr() of querysets, don't load or
display more than 20 objects. This means that accidentally executing HugeStoryArchive.objects.all() at the interactive prompt (or in the debug template) won't try to load all 4,233,010 stories into memory and print them out. That would previously cause resource starvation and other "interesting" crashes. If you really, really want the previous behaviour (e.g. in a doctest that prints more than 20 items), display "list(qs)" instead of just "qs". Backport of r9202 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_ext')
0 files changed, 0 insertions, 0 deletions