update ai insight migration for all page
This commit is contained in:
1 parent
07d36081ce
commit
18790ab8f6
69 files changed
+9457
-399
No files matched your search
@@ -138,3 +138,10 @@ class AIInsightSerializer(PkAsIdMixin, CycleContextMixin, serializers.ModelSeria
|
||||
model = AIInsight
|
||||
fields = "__all__"
|
||||
read_only_fields = ["id", "created_at", "updated_at"]
|
||||
|
||||
def to_representation(self, instance):
|
||||
from apps.operations.services.insight_service import decode_citations
|
||||
|
||||
data = super().to_representation(instance)
|
||||
data["citations"] = decode_citations(instance.citations)
|
||||
return data
|
||||
Reference in new issue
Block a user