mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-30 21:49:50 -05:00
fixed missing user at import
This commit is contained in:
@@ -40,7 +40,7 @@ def sync_wait(request):
|
||||
def batch_import(request):
|
||||
imports = RecipeImport.objects.all()
|
||||
for new_recipe in imports:
|
||||
recipe = Recipe(name=new_recipe.name, file_path=new_recipe.file_path, storage=new_recipe.storage, file_uid=new_recipe.file_uid)
|
||||
recipe = Recipe(name=new_recipe.name, file_path=new_recipe.file_path, storage=new_recipe.storage, file_uid=new_recipe.file_uid, created_by=request.user)
|
||||
recipe.save()
|
||||
new_recipe.delete()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user