]> git.parisson.com Git - mezzo.git/commitdiff
use event tags instead of category
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 21 Apr 2016 10:21:22 +0000 (12:21 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 21 Apr 2016 10:21:22 +0000 (12:21 +0200)
app/festival/management/commands/festival-sync-eve-events.py

index a9da07a7b91543d4de8d760e9cbc3ca09cccd00b..9c601a44e2bfae4aea58ee4c4d88c775edcbb1bc 100644 (file)
@@ -64,9 +64,7 @@ class Command(BaseCommand):
                 location.clean()
                 location.save()
                 event.location = location
-
-                category, c = ma_models.EventCategory.objects.get_or_create(name=eve_event.event_category.name)
-                event.category = category
+                event.tags = eve_event.event_category.name
                 event.save()
 
                 eve_prices = eve_models.PriceManifestation.objects.filter(manifestation=manifestation)