Пример #1
0
def save_n_datasets_with_tag(user, n, tag):    	
    for i in range(n):
    	dataset = DataSet(creator=user)
    	dataset.name = 'test_dataset_name_' + str(i)
    	dataset.is_active = True
    	dataset.save()
    	Tagging.objects.add_tags_and_return_added_tag_names(tag, dataset, user)	
Пример #2
0
def save_n_datasets_with_category(user, n, category):    	
    for i in range(n):
    	dataset = DataSet(creator=user)
    	dataset.name = 'test_dataset_name_' + str(i)
    	dataset.is_active = True
    	dataset.category = category
    	dataset.save()