Fix class name 9b
This commit is contained in:
@ -245,10 +245,14 @@ class EntryCSVProcessor:
|
|||||||
raise ValidationError(f"Event {event.event_name} has no start date")
|
raise ValidationError(f"Event {event.event_name} has no start date")
|
||||||
|
|
||||||
# 日付が必要な場合のフォールバック
|
# 日付が必要な場合のフォールバック
|
||||||
entry_date = row.get('entry_date')
|
entry_date = self.date_converter.convert_date(row['entry_date'])
|
||||||
if entry_date:
|
if entry_date:
|
||||||
entry_date = self.date_converter.convert_date(entry_date)
|
from django.utils import timezone
|
||||||
print(f'エントリー日付:{entry_date}')
|
entry_date = timezone.make_aware(
|
||||||
|
datetime.combine(entry_date, datetime.min.time())
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
entry_date = event.start_datetime
|
||||||
|
|
||||||
entry = Entry.objects.create(
|
entry = Entry.objects.create(
|
||||||
team=team,
|
team=team,
|
||||||
|
|||||||
Reference in New Issue
Block a user