Skip to content

Commit

Permalink
Removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
JarandJR committed Sep 28, 2023
1 parent 7b800a1 commit bfdb1c9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/emoji/serializers/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,3 @@ class ReactionSerializer(BaseModelSerializer):
class Meta:
model = Reaction
fields = ("reaction_id", "user", "emoji", "content_type", "object_id")


# def create(self, validated_data):
# content_type_model = validated_data.pop("content_type.model")
# object_id = validated_data.pop("object_id")
#
# reaction = Reaction.objects.create(
# content_type=content_type_model,
# object_id=object_id,
# **validated_data
# )

# return reaction

0 comments on commit bfdb1c9

Please sign in to comment.