serializers.py 236 Bytes
from django.forms import widgets  
from rest_framework import serializers  
from restful.models import File


class FileSerializer(serializers.ModelSerializer):

    class Meta:
        model = File
        fields = ('file', 'created')