From: Guillaume Pellerin Date: Tue, 12 Apr 2016 10:37:41 +0000 (+0200) Subject: rm cleanup X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b795c82f5b447a8682e82e7efe25ca85ff7e8137;p=mezzo.git rm cleanup --- diff --git a/app/festival/management/commands/festival-sync-eve-events.py b/app/festival/management/commands/festival-sync-eve-events.py index 01948c05..a9da07a7 100644 --- a/app/festival/management/commands/festival-sync-eve-events.py +++ b/app/festival/management/commands/festival-sync-eve-events.py @@ -73,7 +73,8 @@ class Command(BaseCommand): for price in eve_prices: event_price, c = ma_models.EventPrice.objects.get_or_create(value=float(price.value)) if event: - event.prices.add(event_price) + if not event_price in event.prices: + event.prices.add(event_price) if not first: event.parent = parent diff --git a/lib/django-eve b/lib/django-eve index 8cd6feeb..ffd765e8 160000 --- a/lib/django-eve +++ b/lib/django-eve @@ -1 +1 @@ -Subproject commit 8cd6feeb5a16a77c4cfedc9622d5c6217eb2e1fc +Subproject commit ffd765e822be3f2cd8eff85e3876832174de9586