diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index a26b67e43..3a765a805 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -511,7 +511,7 @@ class UiSettingsViewSerializer(serializers.ModelSerializer): ] def update(self, instance, validated_data): - super(UiSettingsViewSerializer, self).update(instance, validated_data) + super().update(instance, validated_data) return instance def create(self, validated_data): diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.py index 1b88e6a3d..38a377c15 100644 --- a/src/documents/tests/test_api.py +++ b/src/documents/tests/test_api.py @@ -1384,7 +1384,7 @@ class TestDocumentApiV2(DirectoriesMixin, APITestCase): response = self.client.get(f"/api/ui_settings/", format="json") self.assertNotEqual( response.data["settings"], - [], + "{}", )