<filename>seed/serializers/file.py
"""
__Seed builder__
  (Read_only) Serializer helper
"""

from rest_framework import serializers
from seed.models.file import File


class FileSerializer(serializers.ModelSerializer):

    class Meta:
        model = File
        fields = (
            'id',
            'hash',
            'url',
            'name',
            'size',
        )
        read_only_fields = (
            'url',
            'name',
            'size'
        )
<filename>seed/serializers/file.py
"""
__Seed builder__
  (Read_only) Serializer helper
"""

from rest_framework import serializers
from seed.models.file import File


class FileSerializer(serializers.ModelSerializer):

    class Meta:
        model = File
        fields = (
            'id',
            'hash',
            'url',
            'name',
            'size',
        )
        read_only_fields = (
            'url',
            'name',
            'size'
        )
__Seed builder__   (Read_only) Serializer helper