Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
PPTI-Mobile Apps Monitoring Wabah Tuberkolosis
Neza-Backend
Commits
d8070ebb
Commit
d8070ebb
authored
Jun 02, 2020
by
Irwanto
Browse files
Fix model name in logs serializers
parent
684020df
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/logs/serializers.py
View file @
d8070ebb
...
...
@@ -41,7 +41,7 @@ class LogSerializer(serializers.Serializer):
if
isinstance
(
instance
,
InvestigationCaseHistory
):
return
MODEL_NAME_INVESTIGATION_CASE
if
isinstance
(
instance
,
MonitoringCaseHistory
):
return
MODEL_NAME_
CASE_SUBJECT
return
MODEL_NAME_
MONITORING_CASE
def
get_author
(
self
,
instance
):
if
isinstance
(
instance
.
author
,
Account
):
...
...
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