mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-12 08:53:56 +01:00
Fixed naming inconsistency between frontend and API.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user