Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 681d708

Browse files
committed
Address review comments.
1 parent 5e79e8c commit 681d708

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

conference/cfp.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ def update_speakers(request, talk_uuid):
178178
if not conf.cfp():
179179
return HttpResponseForbidden()
180180

181-
speaker_form = AddSpeakerToTalkForm(
181+
speaker_form = UpdateAttendeeProfile(
182182
initial=extract_initial_speaker_data_from_user(request.user)
183183
)
184184

185185
if request.method == 'POST':
186-
speaker_form = AddSpeakerToTalkForm(request.POST)
186+
speaker_form = UpdateAttendeeProfile(request.POST)
187187
if speaker_form.is_valid():
188188
with transaction.atomic():
189189
save_information_from_speaker_form(
@@ -371,6 +371,10 @@ class Meta:
371371
]
372372

373373

374+
class UpdateAttendeeProfile(AddSpeakerToTalkForm):
375+
pass
376+
377+
374378
class ProposalForm(forms.ModelForm):
375379

376380
type = forms.ChoiceField(

templates/ep19/bs/cfp/update_speakers.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22

33
{% load crispy_forms_tags static %}
44

5-
{% block morecss %}
6-
<link href="{% static "taggit_labels/css/taggit_labels.css" %}" type="text/css" media="all" rel="stylesheet" />
7-
{% endblock %}
8-
9-
{% block morejs %}
10-
<script src="{% static "/js/taggit_labels_customised_with_max_number_of_tags.js" %}"></script>
11-
{% endblock %}
12-
135

146
{% block content %}
15-
167
<div class="container page" id="cfp_page">
178
<div class="row">
189
<div class="col-md-12">

0 commit comments

Comments
 (0)