Skip to content

Commit

Permalink
fix: add username to user_profile serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 31, 2024
1 parent ba2d95e commit 4afbdce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform_plugin_aspects/sinks/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class UserProfileSerializer(BaseSinkSerializer, serializers.ModelSerializer):
"""Serializer for user profile events."""

email = serializers.CharField(source="user.email")
username = serializers.CharField(source="user.username")

class Meta:
"""Meta class for user profile serializer."""
Expand All @@ -72,6 +73,7 @@ class Meta:
"id",
"user_id",
"name",
"username",
"email",
"meta",
"courseware",
Expand Down

0 comments on commit 4afbdce

Please sign in to comment.