changeset 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 fb2877dd6182
children 9aae4f99f062
files contests/models.py downloads/models.py forums/admin.py gcalendar/models.py weblinks/models.py
diffstat 5 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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):
--- 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()
 
 
--- 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 
--- 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)
--- 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()