gault-millau/apps/comment/serializers/back.py
Виктор Гладких 48ca13803e Pre test permission comment
2019-10-09 14:44:01 +03:00

9 lines
258 B
Python

"""Comment app common serializers."""
from comment import models
from rest_framework import serializers
class CommentBaseSerializer(serializers.ModelSerializer):
class Meta:
model = models.Comment
fields = ('id', 'text', 'mark', 'user')