✨(backend) add API access for 'language' attribute on User model

- allow the language attribute on the user to be updated via API
- add frontend function to update the user language via API
- extend defaults on the test users, to have fixed language in E2E tests
- extend types and variables using the types with the new field
This commit is contained in:
rvveber
2025-03-05 14:29:24 +01:00
committed by Samuel Paccoud
parent 9a79b09b07
commit fda5f8f008
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class UserSerializer(serializers.ModelSerializer):
class Meta:
model = models.User
fields = ["id", "email", "full_name", "short_name"]
fields = ["id", "email", "full_name", "short_name", "language"]
read_only_fields = ["id", "email", "full_name", "short_name"]