diff --git a/AUTHORS b/AUTHORS
index 355206b15d..924edf09c3 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -74,6 +74,7 @@ answer newbie questions, and generally made Django that much better:
Cameron Knight (ckknight)
Bruce Kroeze
Joseph Kocherhans
+ konrad@gwu.edu
lakin.wecker@gmail.com
Stuart Langridge
Eugene Lazutkin
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 44d7d9ffe8..cfbdca4160 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -160,7 +160,7 @@ class User(models.Model):
def get_all_permissions(self):
if not hasattr(self, '_perm_cache'):
import sets
- self._perm_cache = sets.Set(["%s.%s" % (p.content_type.app_label, p.codename) for p in self.user_permissions.all()])
+ self._perm_cache = sets.Set(["%s.%s" % (p.content_type.app_label, p.codename) for p in self.user_permissions.select_related()])
self._perm_cache.update(self.get_group_permissions())
return self._perm_cache