def sample_recipe(user, **params):
    'Create and return a sample recipe'
    defaults = {'title': 'Sample Recipe', 'time_minutes': 10, 'price': 5.0}
    defaults.update(params)
    return Recipe.objects.create(user=user, **defaults)
Create and return a sample recipe
def sample_recipe(user, **params):
    
    defaults = {'title': 'Sample Recipe', 'time_minutes': 10, 'price': 5.0}
    defaults.update(params)
    return Recipe.objects.create(user=user, **defaults)