Sped up the create_permissions signal handler (and thus the test suite) by restructuring its queries.
Sped up the create_permissions signal handler (and thus the test suite) by restructuring its queries.

--HG--
extra : convert_revision : svn%3Abcc190cf-cafb-0310-a4f2-bffc1f526a37/django/trunk%4014446

adieu/django-nonrel,adieu/django-nonrel,adieu/django-nonrel