Mercurial > public > sg101
diff gpp/downloads/models.py @ 190:0e4961833cdf
Added some select_related's to downloads.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 01 Apr 2010 01:57:01 +0000 |
parents | 5c889b587416 |
children | 341759e1cda1 |
line wrap: on
line diff
--- a/gpp/downloads/models.py Thu Apr 01 01:39:37 2010 +0000 +++ b/gpp/downloads/models.py Thu Apr 01 01:57:01 2010 +0000 @@ -43,7 +43,8 @@ class PublicDownloadManager(models.Manager): """The manager for all public downloads.""" def get_query_set(self): - return super(PublicDownloadManager, self).get_query_set().filter(is_public=True) + return super(PublicDownloadManager, self).get_query_set().filter( + is_public=True).select_related() class Download(models.Model):