Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions readthedocs/audit/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ["id", "username"]
fields = ["pk", "username"]


class OrganizationSerializer(serializers.ModelSerializer):
class Meta:
model = Organization
fields = ["id", "slug"]
fields = ["pk", "slug"]


class TeamSerializer(serializers.ModelSerializer):
organization = OrganizationSerializer()

class Meta:
model = Team
fields = ["id", "slug", "organization"]
fields = ["pk", "slug", "organization"]


class ProjectSerializer(serializers.ModelSerializer):
organization = OrganizationSerializer()

class Meta:
model = Project
fields = ["id", "slug", "organization"]
fields = ["pk", "slug", "organization"]


class InvitationSerializer(serializers.ModelSerializer):
Expand All @@ -54,7 +54,7 @@ class InvitationSerializer(serializers.ModelSerializer):
class Meta:
model = Invitation
fields = [
"id",
"pk",
"from_user",
"to_user",
"to_email",
Expand Down