Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
de1a7e54
authored
Jun 12, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: unicode for profile
parent
fa2b6d03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
circle/dashboard/models.py
+13
-0
No files found.
circle/dashboard/models.py
View file @
de1a7e54
...
...
@@ -106,6 +106,19 @@ class Profile(Model):
else
:
return
static
(
"dashboard/img/avatar.png"
)
def
get_display_name
(
self
):
if
self
.
user
.
get_full_name
():
name
=
self
.
user
.
get_full_name
()
else
:
name
=
self
.
user
.
username
if
self
.
org_id
:
name
=
"
%
s (
%
s)"
%
(
name
,
self
.
org_id
)
return
name
def
__unicode__
(
self
):
return
self
.
get_display_name
()
class
GroupProfile
(
AclBase
):
ACL_LEVELS
=
(
...
...
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