# What this PR does ## Which issue(s) this PR fixes ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
25 lines
957 B
Python
25 lines
957 B
Python
from rest_framework import serializers
|
|
|
|
from apps.mobile_app.models import MobileAppUserSettings
|
|
|
|
|
|
class MobileAppUserSettingsSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = MobileAppUserSettings
|
|
fields = (
|
|
"info_notification_sound_name",
|
|
"info_notification_volume_type",
|
|
"info_notification_volume",
|
|
"info_notification_volume_override",
|
|
"default_notification_sound_name",
|
|
"default_notification_volume_type",
|
|
"default_notification_volume",
|
|
"default_notification_volume_override",
|
|
"important_notification_sound_name",
|
|
"important_notification_volume_type",
|
|
"important_notification_volume",
|
|
"important_notification_volume_override",
|
|
"important_notification_override_dnd",
|
|
"info_notifications_enabled",
|
|
"going_oncall_notification_timing",
|
|
)
|