Fakultas Ilmu Komputer UI

Commit e37e8487 authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

Fix Account Creation Log Anonymous Author

parent 2a2fb16f
......@@ -62,7 +62,7 @@ class AccountViewSet(viewsets.ViewSet):
model_name=MODEL_NAME_ACCOUNT,
object_id=account.id,
action_type=ACTIVITY_TYPE_CREATE,
author=request.user.account,
author=account,
)
return Response(
......
......@@ -10,10 +10,10 @@ from apps.cases.views import (
router = DefaultRouter()
router.register(r"case-subjects", CaseSubjectViewSet)
router.register(r"positive-cases", PositiveCaseViewSet)
router.register(r"monitoring-cases", MonitoringCaseViewSet)
router.register(r"investigation-cases", InvestigationCaseViewSet)
router.register(r"case-subjects", CaseSubjectViewSet, basename="case-subject")
router.register(r"positive-cases", PositiveCaseViewSet, basename="positive-case")
router.register(r"monitoring-cases", MonitoringCaseViewSet, basename="monitoring-case")
router.register(r"investigation-cases", InvestigationCaseViewSet, basename="investigation-case")
urlpatterns = [
path("", include(router.urls)),
......
......@@ -6,7 +6,7 @@ from apps.logs.views import LogViewSet
router = DefaultRouter()
router.register(r"", LogViewSet, basename="account")
router.register(r"", LogViewSet, basename="log")
urlpatterns = [
path("", include(router.urls)),
......
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