13 lines
270 B
Python
13 lines
270 B
Python
from rest_framework import serializers
|
|
|
|
from aircox import models
|
|
|
|
|
|
__all__ = ("CommentSerializer",)
|
|
|
|
|
|
class CommentSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = models.Comment
|
|
fields = ["page", "nickname", "email", "date", "content"]
|