Fix calendars import
This commit is contained in:
parent
2803cfe062
commit
0d5a62ae7f
@ -180,7 +180,7 @@ class Command(BaseCommand):
|
||||
calendars[calendar.id] = calendar
|
||||
|
||||
if len(calendars) >= bulk_size and not dry_run:
|
||||
Calendar.objects.bulk_create(calendars,
|
||||
Calendar.objects.bulk_create(calendars.values(),
|
||||
update_conflicts=True,
|
||||
update_fields=['monday', 'tuesday', 'wednesday', 'thursday',
|
||||
'friday', 'saturday', 'sunday', 'start_date',
|
||||
|
Loading…
Reference in New Issue
Block a user