Fakultas Ilmu Komputer UI

Commit 71fa0b74 authored by Irwanto's avatar Irwanto
Browse files

Merge branch 'irwanto/fix-logs-model-name' into 'staging'

Fix model name in logs serializers

See merge request !55
parents 684020df d8070ebb
Pipeline #49097 passed with stages
in 9 minutes and 17 seconds
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment