Mercurial > public > sg101
diff weblinks/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 | 6e6492468bb8 |
children | eeaf387803c6 |
line wrap: on
line diff
--- a/weblinks/models.py Thu Dec 26 13:32:23 2013 -0600 +++ b/weblinks/models.py Sun Dec 29 12:57:03 2013 -0600 @@ -24,8 +24,8 @@ class PublicLinkManager(models.Manager): """The manager for all public links.""" - def get_query_set(self): - return super(PublicLinkManager, self).get_query_set().filter( + def get_queryset(self): + return super(PublicLinkManager, self).get_queryset().filter( is_public=True).select_related()