Mercurial > public > sg101
diff gcalendar/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 | ee87ea74d46b |
children | 9165edfb1709 |
line wrap: on
line diff
--- 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)