# HG changeset patch # User Brian Neal # Date 1388343423 21600 # Node ID 3e1905e523be0dc8d3bc45d58f4ec3ec453f06aa # Parent fb2877dd61822e3dc8725dbaa6e75b8085efe889 Django 1.6: get_query_set -> get_queryset, etc. diff -r fb2877dd6182 -r 3e1905e523be contests/models.py --- a/contests/models.py Thu Dec 26 13:32:23 2013 -0600 +++ b/contests/models.py Sun Dec 29 12:57:03 2013 -0600 @@ -14,8 +14,8 @@ The manager for all public contests. """ - def get_query_set(self): - return super(PublicContestManager, self).get_query_set().filter(is_public=True) + def get_queryset(self): + return super(PublicContestManager, self).get_queryset().filter(is_public=True) class Contest(models.Model): diff -r fb2877dd6182 -r 3e1905e523be downloads/models.py --- 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() diff -r fb2877dd6182 -r 3e1905e523be forums/admin.py --- a/forums/admin.py Thu Dec 26 13:32:23 2013 -0600 +++ b/forums/admin.py Sun Dec 29 12:57:03 2013 -0600 @@ -61,7 +61,7 @@ ordering = ('-creation_date', ) save_on_top = True - def queryset(self, request): + def get_queryset(self, request): return Post.objects.select_related('user') # override save_model() to update the search index diff -r fb2877dd6182 -r 3e1905e523be gcalendar/models.py --- a/gcalendar/models.py Thu Dec 26 13:32:23 2013 -0600 +++ b/gcalendar/models.py Sun Dec 29 12:57:03 2013 -0600 @@ -18,10 +18,10 @@ class PendingEventManager(models.Manager): """A manager for pending events.""" - def get_query_set(self): + def get_queryset(self): """Returns a queryset of events that have been approved to update the Google calendar.""" - return super(PendingEventManager, self).get_query_set().filter( + return super(PendingEventManager, self).get_queryset().filter( Q(status=Event.NEW_APRV) | Q(status=Event.EDIT_APRV) | Q(status=Event.DEL_APRV) diff -r fb2877dd6182 -r 3e1905e523be weblinks/models.py --- 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()