Skip to content

Commit 8e0f97d

Browse files
authored
Merge pull request #142 from golony6449/feature/golony/program
response 에 아이돌봄 반영
2 parents 71c0b6f + dc4d39a commit 8e0f97d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ticket/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from django.views.decorators.csrf import csrf_exempt
1111

1212
import payment.logic
13-
from program.models import CONFERENCE, TUTORIAL, SPRINT
13+
from program.models import CONFERENCE, TUTORIAL, SPRINT, CHILDCARE
1414
from .models import Ticket, TicketType
1515
from .requests import (
1616
AddConferenceTicketRequest,
@@ -68,6 +68,7 @@ def get__get_ticket_types(request: HttpRequest, **kwargs) -> HttpResponse:
6868
"conference": [],
6969
"tutorial": [],
7070
"sprint": [],
71+
"childcare": [],
7172
}
7273

7374
for ticket_type in ticket_types:
@@ -77,6 +78,8 @@ def get__get_ticket_types(request: HttpRequest, **kwargs) -> HttpResponse:
7778
response["tutorial"].append(TicketTypeViewModel(ticket_type).to_dict())
7879
elif ticket_type.program.program_type == SPRINT:
7980
response["sprint"].append(TicketTypeViewModel(ticket_type).to_dict())
81+
elif ticket_type.program.program_type == CHILDCARE:
82+
response["childcare"].append(TicketTypeViewModel(ticket_type).to_dict())
8083

8184
return HttpResponse(json.dumps(response))
8285

0 commit comments

Comments
 (0)