mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Code suggestions
Co-Authored-By: Trenton Holmes <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
parent
1953a8ecb7
commit
b21edde1bc
@ -511,7 +511,7 @@ class UiSettingsViewSerializer(serializers.ModelSerializer):
|
|||||||
]
|
]
|
||||||
|
|
||||||
def update(self, instance, validated_data):
|
def update(self, instance, validated_data):
|
||||||
super(UiSettingsViewSerializer, self).update(instance, validated_data)
|
super().update(instance, validated_data)
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
|
@ -1384,7 +1384,7 @@ class TestDocumentApiV2(DirectoriesMixin, APITestCase):
|
|||||||
response = self.client.get(f"/api/ui_settings/", format="json")
|
response = self.client.get(f"/api/ui_settings/", format="json")
|
||||||
self.assertNotEqual(
|
self.assertNotEqual(
|
||||||
response.data["settings"],
|
response.data["settings"],
|
||||||
[],
|
"{}",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user