Supports profile updates

only background for now, but hey.
This commit is contained in:
2025-05-22 22:53:39 +02:00
parent a54f8947bb
commit e7cc031588
3 changed files with 20 additions and 6 deletions
+6
View File
@@ -12,3 +12,9 @@ class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = '__all__'
class ProfileUpdateSerializer(serializers.ModelSerializer):
background = serializers.PrimaryKeyRelatedField(many=False, queryset=Background.objects.all())
class Meta:
model = Profile
fields = ['background']