Fixed naming inconsistency between frontend and API.

This commit is contained in:
Antoine Nguyen
2025-08-22 09:59:46 +02:00
parent acd93fe647
commit 29287d5878
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -731,7 +731,7 @@ class CSVImportSerializer(serializers.Serializer):
class CSVIdentityImportSerializer(CSVImportSerializer):
"""Custom serializer for identity import."""
crypt_password = serializers.BooleanField()
crypt_passwords = serializers.BooleanField()
class AlarmSerializer(serializers.ModelSerializer):
+1 -1
View File
@@ -593,7 +593,7 @@ dlist; dlist@test.com; True; user1@test.com; user@extdomain.com
) # NOQA:E501
self.client.post(
reverse("v2:identities-import-from-csv"),
{"sourcefile": f, "crypt_password": True},
{"sourcefile": f, "crypt_passwords": True},
)
admin = core_models.User.objects.get(username="admin")
u1 = core_models.User.objects.get(username="user1@test.com")