minor fixes keyword tree system

This commit is contained in:
vabene1111
2021-07-05 10:17:14 +02:00
parent 168c6e3938
commit b661cdcf3e
3 changed files with 5 additions and 4 deletions

View File

@@ -51,6 +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(','):
print(f'adding keyword {k.strip()}')
keyword, created = Keyword.get_or_create(name=k.strip(), space=self.request.space)
recipe.keywords.add(keyword)