def count_contributors_in_range(queryset, users, date_range):
 (start, end) = date_range
 users = set((o.creator for o in queryset.filter(creator__in=users, created__gte=start, created__lt=end)))
 return len(users)

def count_contributors_in_range ( queryset , users , date_range ) : ( start , end ) = date_range users = set ( ( o . creator for o in queryset . filter ( creator__in = users , created__gte = start , created__lt = end ) ) ) return len ( users )
of the group users .