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
bookshare
Commits
0c61b0db
Commit
0c61b0db
authored
Apr 09, 2016
by
Mark Stenglein
Browse files
Fix Logic
parent
2ca5809f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/core/models.py
View file @
0c61b0db
...
...
@@ -20,7 +20,7 @@ class Student(TimeStampedModel):
emails_sent
=
models
.
PositiveIntegerField
(
default
=
0
)
def
get_full_name
(
self
):
if
(
self
.
user
.
get_full_name
()
==
""
):
if
not
(
self
.
user
.
get_full_name
()):
return
self
.
user
.
username
else
:
return
self
.
user
.
get_full_name
()
...
...
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