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
Nathan R Lapierre
advisor
Commits
7ebed047
Commit
7ebed047
authored
Dec 23, 2013
by
Daniel W Bond
Browse files
fixed user in models
parent
52ca6650
Changes
1
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/models.py
View file @
7ebed047
...
...
@@ -75,12 +75,10 @@ class Program(BaseModel):
return
self
.
name
# should inherit from the standard Django User Model
class
Student
(
BaseModel
):
class
Student
(
User
):
user
=
models
.
OneToOneField
(
User
)
# might there be a problem with the name field in base?
# should this be a trajectory instead? >_>
alreadyTaken
=
models
.
ManyToManyField
(
'Course'
,
null
=
True
)
trajectory
=
models
.
ManyToManyField
(
'Trajectory'
,
null
=
True
)
...
...
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