Commit 371335c0 authored by Ben Waters's avatar Ben Waters

switching form names and view names. got rid of cbv for trajectory no need

parent f83e4d78
......@@ -32,7 +32,7 @@ class StyledSeachForm( SearchForm ):
# name
# }
class NewTrajectoryForm( ModelForm ):
class CreatePersonalProgramListForm( ModelForm ):
# def __init__(self, *args, **kwargs):
class Meta:
......@@ -90,6 +90,8 @@ class NewTrajectoryForm( ModelForm ):
'placeholder' = 'Name Your Trajectory',
}),
}
class BuildTrajectoryForm(ModelForm):
model = Trajectory
class StudentInfoForm( ModelForm ):
# def __init__(self, *args, **kwargs):
......
......@@ -6,10 +6,10 @@ from trajecgtories.utils import *
from braces.views import LoginRequiredMixin
# a page for creating new trajectories
# @login_required
def create_trajectory(LoginRequiredMixin, CreateView):
model = Trajectory
form = CreateTrajectoryForm
@login_required
def new_list_of_programs(FormView):
template_name = 'new.html'
form = CreatePersonalProgramListForm
#programs = Program.objects.all()
#courses = Course.objects.all()
......@@ -18,7 +18,8 @@ def create_trajectory(LoginRequiredMixin, CreateView):
# "Build"
def update_trajectory(LoginRequiredMixin, UpdateView):
model = Trajectory
form = UpdateTrajectoryForm
form = BuildTrajectoryForm
template_name = 'build.html'
# student's page; shows saved trajectories
# @login_required
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment