comparison 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
comparison
equal deleted inserted replaced
739:fb2877dd6182 740:3e1905e523be
16 GIG_FORUM_SLUG = "gigs" 16 GIG_FORUM_SLUG = "gigs"
17 17
18 class PendingEventManager(models.Manager): 18 class PendingEventManager(models.Manager):
19 """A manager for pending events.""" 19 """A manager for pending events."""
20 20
21 def get_query_set(self): 21 def get_queryset(self):
22 """Returns a queryset of events that have been approved to update 22 """Returns a queryset of events that have been approved to update
23 the Google calendar.""" 23 the Google calendar."""
24 return super(PendingEventManager, self).get_query_set().filter( 24 return super(PendingEventManager, self).get_queryset().filter(
25 Q(status=Event.NEW_APRV) | 25 Q(status=Event.NEW_APRV) |
26 Q(status=Event.EDIT_APRV) | 26 Q(status=Event.EDIT_APRV) |
27 Q(status=Event.DEL_APRV) 27 Q(status=Event.DEL_APRV)
28 ) 28 )
29 29