Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
e4051d62
Commit
e4051d62
authored
Feb 17, 2018
by
Robin Sonnabend
Browse files
Do not show an error description if it does not exist
parent
f1aa0abb
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/database.py
View file @
e4051d62
...
...
@@ -701,6 +701,8 @@ class Error(DatabaseModel):
return
self
.
protocol
def
get_short_description
(
self
):
if
not
self
.
description
:
return
""
lines
=
self
.
description
.
splitlines
()
if
len
(
lines
)
<=
4
:
return
"
\n
"
.
join
(
lines
)
...
...
Write
Preview
Supports
Markdown
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