forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
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"]
|