django/tests
Malcolm Tredinnick 44f228fd61 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".


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 08:38:33 +00:00
..
modeltests Fixed #8669 -- Use a consistent version of create() across the board for 2008-09-03 00:09:33 +00:00
regressiontests Fixed #6748 -- When printing the repr() of querysets, don't load or display 2008-10-08 08:38:33 +00:00
templates Fixed #7602 -- Corrected lookup keyword arguments in archive_month and archive_week to properly range when date_field is from DateField. Thanks nullie for the original patch and Colin Grady for the test coverage. 2008-08-23 04:46:33 +00:00
runtests.py Promoted --verbosity to be a top level option for all management commands. Also added -v as a consistent short form of --verbosity. This is mostly to save Malcolm's poor arthritic fingers. 2008-10-02 12:57:13 +00:00
urls.py Merged the newforms-admin branch into trunk. 2008-07-18 23:54:34 +00:00