Skip to content

Instantly share code, notes, and snippets.

@alapidas
Last active October 24, 2015 16:04
Show Gist options
  • Save alapidas/f3bccb438bca0775c27b to your computer and use it in GitHub Desktop.
Save alapidas/f3bccb438bca0775c27b to your computer and use it in GitHub Desktop.
period_dates, period_extent = self.date_range(ytd=True)
org = self.org()
all_periods = org.student_period_attendance.filter(
date__gte=period_extent[0], date__lte=period_extent[1], archived__exact=False, deleted__isnull=True
)
attended_periods = all_periods.filter(is_absent__exact=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment