Skip to content

Commit

Permalink
Merge pull request #103 from openedx/cag/coalesce-actor-id
Browse files Browse the repository at this point in the history
fix: add username to user_profile serializer
  • Loading branch information
Cristhian Garcia authored Nov 1, 2024
2 parents ba2d95e + ecbea36 commit bc3da90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform_plugin_aspects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
import os
from pathlib import Path

__version__ = "0.11.3"
__version__ = "0.11.4"

ROOT_DIRECTORY = Path(os.path.dirname(os.path.abspath(__file__)))
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 bc3da90

Please sign in to comment.