Skip to content

Commit

Permalink
Merge pull request #417 from Monstarrrr/feat/409_showusercreationdate
Browse files Browse the repository at this point in the history
return created date of userprofile
  • Loading branch information
seporterfield authored Dec 24, 2024
2 parents 2953de1 + 3b47097 commit 6081a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/core/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ def get_ownerUser(self, obj):
class UserProfileOnPostSerializer(serializers.ModelSerializer):
class Meta:
model = UserProfile
fields = ["username", "avatar", "bio", "reputation"]
fields = ["username", "avatar", "bio", "reputation", "created"]


class UserProfileSerializer(serializers.ModelSerializer):
followedPosts = PostSerializer(source="saved_posts", many=True, read_only=True)

class Meta:
model = UserProfile
fields = ["username", "avatar", "bio", "reputation", "followedPosts"]
fields = ["username", "avatar", "bio", "reputation", "created", "followedPosts"]


class ReportSerializer(serializers.ModelSerializer):
Expand Down

0 comments on commit 6081a09

Please sign in to comment.