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
SRCT
roomlist
Commits
6bcd82ba
Commit
6bcd82ba
authored
Oct 06, 2016
by
Daniel W Bond
Browse files
changed student tostring's to student's names or usernames, rather than just usernames
parent
5a1bb016
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
6bcd82ba
...
...
@@ -293,10 +293,10 @@ class Student(TimeStampedModel):
ordering
=
[
'user'
]
def
__str__
(
self
):
# __unicode__ on Python 2
return
self
.
user
.
user
name
return
self
.
get_full_name_or_u
name
()
def
__unicode__
(
self
):
return
unicode
(
self
.
user
.
user
name
)
return
unicode
(
self
.
get_full_name_or_u
name
()
)
# uncomment if there's something going awry while saving
# def save(self, *args, **kwargs):
...
...
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