django/django — pull request #1699 by NiGhTTraX (2013-10-01 09:33:25+00:00)
Title: Fix deleting more than 999 related objects using SQLite.

In SQLite, deleting objects that have more than 999 related objects will fail
with a 'too many SQL variables' error.

Changed related_objects() to fetch objects in batches. Added a new test to check
for this new behavior.