Mercurial > public > sg101
diff downloads/models.py @ 740:3e1905e523be
Django 1.6: get_query_set -> get_queryset, etc.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 29 Dec 2013 12:57:03 -0600 |
parents | 15dbe0ccda95 |
children | a5ebc74dc3f3 |
line wrap: on
line diff
--- a/downloads/models.py Thu Dec 26 13:32:23 2013 -0600 +++ b/downloads/models.py Sun Dec 29 12:57:03 2013 -0600 @@ -43,8 +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( + def get_queryset(self): + return super(PublicDownloadManager, self).get_queryset().filter( is_public=True).select_related()