Skip to content

Commit

Permalink
fixed not building error
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwli930 committed Nov 15, 2023
1 parent 5c5c288 commit 7bd4be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions P2/notifications/serializers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rest_framework import serializers
from notifications.models import Notification, NotificationPreferences
from users.serializers.serializers import UserSerializer
from users.serializers.serializers import UserProfileSerializer

class AssociatedModelTypeSerializer(serializers.SlugRelatedField):
def to_representation(self, value):
Expand All @@ -14,7 +14,7 @@ class Meta:
fields = ['id', 'user', 'notification_type', 'associated_model_type', 'associated_model_id', 'created', 'read']

class NotificationPreferencesSerializer(serializers.ModelSerializer):
user = UserSerializer(read_only=True)
user = UserProfileSerializer(read_only=True)

class Meta:
model = NotificationPreferences
Expand Down

0 comments on commit 7bd4be8

Please sign in to comment.