Update serializers.py

This commit is contained in:
alorig
2025-11-17 17:32:46 +05:00
parent fe7af3c81c
commit 41c1501764

View File

@@ -85,7 +85,7 @@ class TasksSerializer(serializers.ModelSerializer):
def _get_content_record(self, obj):
try:
return obj.content_record
except AttributeError:
except (AttributeError, Content.DoesNotExist):
return None
def get_content_html(self, obj):