Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel W Bond
advisor
Commits
371335c0
Commit
371335c0
authored
Feb 05, 2014
by
Ben Waters
Browse files
switching form names and view names. got rid of cbv for trajectory no need
parent
f83e4d78
Changes
6
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/forms.py
View file @
371335c0
...
...
@@ -32,7 +32,7 @@ class StyledSeachForm( SearchForm ):
# name
# }
class
NewTrajectory
Form
(
ModelForm
):
class
CreatePersonalProgramList
Form
(
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):
...
...
advisor/trajectories/tests/test_forms.py
0 → 100644
View file @
371335c0
advisor/trajectories/tests/test_models.py
0 → 100644
View file @
371335c0
advisor/trajectories/tests/test_views.py
0 → 100644
View file @
371335c0
advisor/trajectories/tests.py
→
advisor/trajectories/tests
/tests
.py
View file @
371335c0
File moved
advisor/trajectories/views.py
View file @
371335c0
...
...
@@ -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
,
Create
View
):
model
=
Trajectory
form
=
Create
Trajectory
Form
@
login_required
def
new_list_of_programs
(
Form
View
):
template_name
=
'new.html'
form
=
Create
PersonalProgramList
Form
#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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment