Update serialisers.py

This commit is contained in:
shamoon 2025-03-08 17:06:00 -08:00
parent 60796c770d
commit 1978209870

View File

@ -862,14 +862,15 @@ class CustomFieldInstanceSerializer(serializers.ModelSerializer):
]
class UserSerializer(serializers.ModelSerializer):
class BasicUserSerializer(serializers.ModelSerializer):
# Different than paperless.serializers.UserSerializer
class Meta:
model = User
fields = ["id", "username", "first_name", "last_name"]
class NotesSerializer(serializers.ModelSerializer):
user = UserSerializer()
user = BasicUserSerializer()
class Meta:
model = Note