diff --git a/symposion_project/proposals/admin.py b/symposion_project/proposals/admin.py index f91038a5..431029b9 100644 --- a/symposion_project/proposals/admin.py +++ b/symposion_project/proposals/admin.py @@ -1,10 +1,8 @@ from django.contrib import admin -from symposion_project.proposals.models import ProposalCategory, TalkProposal, TutorialProposal, PosterProposal +from symposion_project.proposals.models import TalkProposal, TutorialProposal, PosterProposal + -admin.site.register(ProposalCategory, - prepopulated_fields = {"slug": ("name",)}, -) admin.site.register(TalkProposal) admin.site.register(TutorialProposal) admin.site.register(PosterProposal) diff --git a/symposion_project/proposals/forms.py b/symposion_project/proposals/forms.py index 532bacc3..ec9c86d4 100644 --- a/symposion_project/proposals/forms.py +++ b/symposion_project/proposals/forms.py @@ -2,17 +2,11 @@ from django import forms from markitup.widgets import MarkItUpWidget -from symposion_project.proposals.models import ProposalCategory, TalkProposal, TutorialProposal, PosterProposal +from symposion_project.proposals.models import TalkProposal, TutorialProposal, PosterProposal class ProposalForm(forms.ModelForm): - def __init__(self, *args, **kwargs): - super(ProposalForm, self).__init__(*args, **kwargs) - self.fields["category"] = forms.ModelChoiceField( - queryset = ProposalCategory.objects.order_by("name") - ) - def clean_description(self): value = self.cleaned_data["description"] if len(value) > 400: @@ -28,7 +22,6 @@ class TalkProposalForm(ProposalForm): model = TalkProposal fields = [ "title", - "category", "audience_level", "description", "abstract", @@ -47,7 +40,6 @@ class TutorialProposalForm(ProposalForm): model = TutorialProposal fields = [ "title", - "category", "audience_level", "description", "abstract", @@ -67,7 +59,6 @@ class PosterProposalForm(ProposalForm): model = PosterProposal fields = [ "title", - "category", "audience_level", "description", "abstract",