Update serializers.py
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user