Skip to content

Commit

Permalink
categories to manytomany
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeman committed Aug 12, 2011
1 parent e3935dc commit ca95865
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion symposion/proposals/forms.py
Expand Up @@ -14,7 +14,7 @@ class Meta:
fields = [
"title",
"kind",
"category",
"categories",
"audience_level",
"extreme",
"duration",
Expand Down
2 changes: 1 addition & 1 deletion symposion/proposals/models.py
Expand Up @@ -31,8 +31,8 @@ class Proposal(models.Model):
help_text = "Brief one paragraph blurb (will be public if accepted). Must be 400 characters or less"
)
kind = models.ForeignKey(PresentationKind)
category = models.ForeignKey(PresentationCategory)
abstract = MarkupField(help_text = "More detailed description (will be public if accepted).")
categories = models.ManyToManyField(PresentationCategory)
audience_level = models.IntegerField(choices=AUDIENCE_LEVELS)
additional_notes = MarkupField(
blank=True,
Expand Down
1 change: 1 addition & 0 deletions symposion/proposals/views.py
Expand Up @@ -38,6 +38,7 @@ def proposal_submit(request):
proposal = form.save(commit=False)
proposal.speaker = speaker_profile
proposal.save()
form.save_m2m()
messages.success(request, "Talk proposal submitted.")
if "add-speakers" in request.POST:
return redirect("proposal_speaker_manage", proposal.pk)
Expand Down

0 comments on commit ca95865

Please sign in to comment.