trying to fix things

This commit is contained in:
vabene1111
2021-07-03 21:31:18 +02:00
committed by smilerz
parent 27d6482082
commit a6e351736b
3 changed files with 30 additions and 11 deletions

View File

@ -51,7 +51,7 @@ class Chowdown(Integration):
recipe = Recipe.objects.create(name=title, created_by=self.request.user, internal=True, space=self.request.space)
for k in tags.split(','):
keyword, created = Keyword.objects.get_or_create(name=k.strip(), space=self.request.space)
keyword, created = Keyword.get_or_create(name=k.strip(), space=self.request.space)
recipe.keywords.add(keyword)
step = Step.objects.create(