This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bestillingsskjema/bestilling/serializers.py
T
2016-03-22 16:17:34 +01:00

11 lines
305 B
Python

from rest_framework.serializers import ModelSerializer
from bestilling.models import Attachment
class AttachmentSerializer(ModelSerializer):
class Meta:
model = Attachment
fields = ('id', 'uploaded_file', 'trello_id', 'object_id', 'content_type')
read_only_fields = ('id',)