mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Fixes the whitenoise warning in the test suite
This commit is contained in:
parent
53baed0389
commit
cbe567069f
3 changed files with 19 additions and 12 deletions
|
|
@ -585,10 +585,6 @@ class UiSettingsViewSerializer(serializers.ModelSerializer):
|
|||
"settings",
|
||||
]
|
||||
|
||||
def update(self, instance, validated_data):
|
||||
super().update(instance, validated_data)
|
||||
return instance
|
||||
|
||||
def create(self, validated_data):
|
||||
ui_settings = UiSettings.objects.update_or_create(
|
||||
user=validated_data.get("user"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue