File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
from django .views .decorators .csrf import csrf_exempt
11
11
12
12
import payment .logic
13
- from program .models import CONFERENCE , TUTORIAL , SPRINT
13
+ from program .models import CONFERENCE , TUTORIAL , SPRINT , CHILDCARE
14
14
from .models import Ticket , TicketType
15
15
from .requests import (
16
16
AddConferenceTicketRequest ,
@@ -68,6 +68,7 @@ def get__get_ticket_types(request: HttpRequest, **kwargs) -> HttpResponse:
68
68
"conference" : [],
69
69
"tutorial" : [],
70
70
"sprint" : [],
71
+ "childcare" : [],
71
72
}
72
73
73
74
for ticket_type in ticket_types :
@@ -77,6 +78,8 @@ def get__get_ticket_types(request: HttpRequest, **kwargs) -> HttpResponse:
77
78
response ["tutorial" ].append (TicketTypeViewModel (ticket_type ).to_dict ())
78
79
elif ticket_type .program .program_type == SPRINT :
79
80
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 ())
80
83
81
84
return HttpResponse (json .dumps (response ))
82
85
You can’t perform that action at this time.
0 commit comments