django/django — pull request #1139 by patrys (2013-05-18 16:34:19+00:00)
Title: Make sure QuerySet.get() never fetches more than two rows

Currently if you pass incorrect parameters to get you can end up fetching a huge number of rows and possibly run out of memory for the sake of displaying the number of matched rows.