Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bookshare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
bookshare
Commits
9f847115
Commit
9f847115
authored
Mar 03, 2020
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added __str__ to student model... __unicode__ may be deprecated, will need to check
parent
ddf145a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
bookshare/core/models.py
bookshare/core/models.py
+3
-0
No files found.
bookshare/core/models.py
View file @
9f847115
...
...
@@ -72,5 +72,8 @@ class Course(TimeStampedModel):
# validators=RegexValidator('[0-9]{3,}'))
number
=
models
.
CharField
(
max_length
=
3
)
def
__str__
(
self
):
return
"%s %s"
%
(
self
.
departmentAbbreviation
,
self
.
number
)
def
__unicode__
(
self
):
return
"%s %s"
%
(
self
.
departmentAbbreviation
,
self
.
number
)
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