Fix calendars import

This commit is contained in:
Emmy D'Anello 2024-02-10 20:42:55 +01:00
parent 2803cfe062
commit 0d5a62ae7f
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class Command(BaseCommand):
calendars[calendar.id] = calendar calendars[calendar.id] = calendar
if len(calendars) >= bulk_size and not dry_run: if len(calendars) >= bulk_size and not dry_run:
Calendar.objects.bulk_create(calendars, Calendar.objects.bulk_create(calendars.values(),
update_conflicts=True, update_conflicts=True,
update_fields=['monday', 'tuesday', 'wednesday', 'thursday', update_fields=['monday', 'tuesday', 'wednesday', 'thursday',
'friday', 'saturday', 'sunday', 'start_date', 'friday', 'saturday', 'sunday', 'start_date',