feat(core): add org field History Model api rendering
ref: #605 #602 #455
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
from rest_framework.reverse import reverse
|
||||
from rest_framework import serializers
|
||||
|
||||
from access.serializers.organization import OrganizationBaseSerializer
|
||||
|
||||
from app.serializers.user import UserBaseSerializer
|
||||
|
||||
from core.models.model_history import ModelHistory
|
||||
@ -120,6 +122,7 @@ class HistoryModelSerializer(HistoryBaseSerializer):
|
||||
'user',
|
||||
'model',
|
||||
'child_model',
|
||||
'organization',
|
||||
'created',
|
||||
'_urls',
|
||||
]
|
||||
@ -135,4 +138,6 @@ class HistoryModelSerializer(HistoryBaseSerializer):
|
||||
|
||||
class HistoryViewSerializer(HistoryModelSerializer):
|
||||
|
||||
organization = OrganizationBaseSerializer( read_only = True )
|
||||
|
||||
user = UserBaseSerializer( read_only = True )
|
||||
|
Reference in New Issue
Block a user