Commit 9497c469 authored by fred's avatar fred
Browse files

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

parent f543cd1b
...@@ -411,11 +411,11 @@ class Command(BaseCommand): ...@@ -411,11 +411,11 @@ class Command(BaseCommand):
self.set_image(episode, image_path) self.set_image(episode, image_path)
for motcle in article.mots_cles: for motcle in article.mots_cles:
episode.tags.add(motcle.lower()) episode.tags.add(motcle.lower())
if not Diffusion.objects.filter(episode=episode).count(): if not Diffusion.objects.filter(episode=episode).count():
diffusion = Diffusion() diffusion = Diffusion()
diffusion.episode = episode diffusion.episode = episode
Supports Markdown
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