<s> from rest_framework import serializers <EOL> from . . models import Comment <EOL> from . . import signals <EOL> class CommentSerializer ( serializers . ModelSerializer ) : <EOL> def save ( self , ** kwargs ) : <EOL> super ( ) . save ( ** kwargs ) <EOL> signals . comment_created . send ( <EOL> sender = Comment , <EOL> comment = self . instance , <EOL> comment_type = self . instance . content_type , <EOL> object_id = self . instance . object_id , <EOL> ) <EOL> class Meta : <EOL> model = Comment <EOL> fields = '<STR_LIT:text>' , </s>
