def generate_credits(component, start_date, end_date):
 result = []
 for translation in component.translation_set.all():
  authors = Change.objects.authors_list(translation, (start_date, end_date))
  if (not authors):
   continue
  result.append({translation.language.name: sorted(set(authors))})
 return result

def generate_credits ( component , start_date , end_date ) : result = [ ] for translation in component . translation_set . all ( ) : authors = Change . objects . authors_list ( translation , ( start_date , end_date ) ) if ( not authors ) : continue result . append ( { translation . language . name : sorted ( set ( authors ) ) } ) return result
generates credits data for given component .