def get_new_language_form(request, component):
 if request.user.is_superuser:
  return NewLanguageOwnerForm
 if component.project.owners.filter(id=request.user.id).exists():
  return NewLanguageOwnerForm
 return NewLanguageForm

def get_new_language_form ( request , component ) : if request . user . is_superuser : return NewLanguageOwnerForm if component . project . owners . filter ( id = request . user . id ) . exists ( ) : return NewLanguageOwnerForm return NewLanguageForm
returns new language form for user .