def new_connector(request, dialect): instance = get_connector_by_type(dialect) instance['nice_name'] = dialect.title() instance['id'] = None return JsonResponse({'connector': instance})
def new_connector(request, dialect, interface): instance = get_connector_by_type(dialect, interface) instance['id'] = None return JsonResponse({'connector': instance})