def get_future_meeting(start,end,empty_msg): return { 'meetings':Meeting.objects.filter( when__gte=datetime.datetime.now()-settings.LATE_ARRIVAL_OFFSET ).order_by('when')[start:end], 'empty_msg':empty_msg, 'user': get_current_user() }
def get_future_meeting(start, end, empty_msg): return { 'meetings': Meeting.objects.filter( when__gte=datetime.datetime.now() - settings.LATE_ARRIVAL_OFFSET).order_by('when')[start:end], 'empty_msg': empty_msg, 'user': get_current_user() }
def get_all_past_meetings(empty_msg): return { 'meetings':Meeting.objects.filter(when__lte=datetime.datetime.now() ), 'empty_msg':empty_msg, 'user': get_current_user() }
def get_meeting(start,end,empty_msg): return { 'meetings':Meeting.objects.all().order_by('when')[start:end], 'empty_msg':empty_msg, 'user': get_current_user() }
def get_all_past_meetings(empty_msg): return { 'meetings': Meeting.objects.filter(when__lte=datetime.datetime.now()), 'empty_msg': empty_msg, 'user': get_current_user() }
def get_meeting(start, end, empty_msg): return { 'meetings': Meeting.objects.all().order_by('when')[start:end], 'empty_msg': empty_msg, 'user': get_current_user() }
def rsvp_user_maybe(self): return self.meetingrsvp_set.filter(user=get_current_user(), rsvp='maybe').count() != 0
def rsvp_user_yes(self): return self.meetingrsvp_set.filter(user=get_current_user(), rsvp='yes').count() != 0
def rsvp_user_maybe(self): return self.meetingrsvp_set.filter(user=get_current_user(),rsvp='maybe').count() != 0
def rsvp_user_yes(self): return self.meetingrsvp_set.filter(user=get_current_user(),rsvp='yes').count() != 0