fixed url_import

This commit is contained in:
smilerz
2021-08-14 07:55:22 -05:00
parent 7b4123462d
commit ed49f19fe9
3 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,7 @@ def import_url(request):
recipe.steps.add(step)
for kw in data['keywords']:
k = Keyword.objects.get_or_create(name=kw['text'], space=request.space)
k, created = Keyword.objects.get_or_create(name=kw['text'], space=request.space)
recipe.keywords.add(k)
for ing in data['recipeIngredient']: