Skip to content

Commit

Permalink
Merge pull request #341 from CTPUG/new-talk
Browse files Browse the repository at this point in the history
A new object won't have an initial talk_type
  • Loading branch information
stefanor committed Jan 29, 2017
2 parents 803688e + d7cda30 commit f13c671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wafer/talks/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, *args, **kwargs):
else:
self.fields['talk_type'] = TalkCategorisationField(
model=TalkType,
initial=self.initial['talk_type']
initial=self.initial.get('talk_type')
)

# We add the name, if known, to the authors list
Expand Down

0 comments on commit f13c671

Please sign in to comment.