Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Kontr 2.0
Portal API Backend
Commits
11504fcd
Verified
Commit
11504fcd
authored
May 18, 2019
by
Peter Stanko
Browse files
Adding note
parent
94ae257a
Changes
1
Hide whitespace changes
Inline
Side-by-side
portal/database/models.py
View file @
11504fcd
...
...
@@ -875,10 +875,9 @@ class Submission(db.Model, EntityBase):
def
make_change
(
self
,
change
):
if
self
.
note
is
None
:
self
.
note
=
{}
if
'changes'
in
self
.
note
:
self
.
note
[
'changes'
].
append
(
change
)
else
:
if
'changes'
not
in
self
.
note
:
self
.
note
[
'changes'
]
=
[]
self
.
note
[
'changes'
].
append
(
change
)
@property
def
changes
(
self
)
->
List
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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