I honestly can't remember actually!
I'm pretty sure all of my changes have been accepted into mezzanine proper now. If it's not there yet then I never got to it!
I did find some issues with dupes being added if you don't check them first.
Here is some code verbatim from a now redundant import on a client project (note, I think this works but you should test it first):
for kw in keywords:
kw = kw.strip()
if kw:
keyword, created = Keyword.objects.get_or_create(title=kw)
if kw not in [k.keyword.title for k in recipe_inst.keywords.all()]:
recipe_inst.keywords.add(AssignedKeyword(keyword=keyword))
So I'm not sure on the best approach.. I would assume dupes are not desirable, but Stephen will no doubt be able to make an executive decision.
D