Commit 9497c469 authored by fred's avatar fred

load-from-spip: fix adding tags to new episodes

parent f543cd1b
......@@ -411,11 +411,11 @@ class Command(BaseCommand):
self.set_image(episode, image_path)
episode.save()
for motcle in article.mots_cles:
episode.tags.add(motcle.lower())
episode.save()
if not Diffusion.objects.filter(episode=episode).count():
diffusion = Diffusion()
diffusion.episode = episode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment