Add additional API and view tests. Add success and multi document titles strings. Make use of external mixin in the document type submit view. Puntuate all view text strings. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
22 lines
523 B
Python
22 lines
523 B
Python
from __future__ import unicode_literals
|
|
|
|
from rest_framework import serializers
|
|
|
|
|
|
class DocumentPageParsingSerializer(serializers.Serializer):
|
|
text = serializers.CharField(
|
|
read_only=True, source='get_content'
|
|
)
|
|
|
|
|
|
class DocumentParsingSerializer(serializers.Serializer):
|
|
text = serializers.CharField(
|
|
read_only=True, source='get_content'
|
|
)
|
|
|
|
|
|
class DocumentVersionParsingSerializer(serializers.Serializer):
|
|
text = serializers.CharField(
|
|
read_only=True, source='get_content'
|
|
)
|