#NEWLINE# def count_contributors_in_range( queryset , users , date_range ) : #NEWLINE# #INDENT# 'Of the group ``users``, count how many made a contribution in ``date_range``.' #NEWLINE# ( start , end ) = date_range #NEWLINE# users = set ( ( o . creator for o in queryset . filter ( creator__in = users , created__gte = start , created__lt = end ) ) ) #NEWLINE# return len ( users )