Revert "Update serializers.py"

This reverts commit 41c1501764.
This commit is contained in:
alorig
2025-11-17 17:34:18 +05:00
parent 41c1501764
commit 2605c62eec

View File

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