Files
zulip/zerver/migrations/0194_userprofile_notification_sound.py
Marco Burstein ba46dc83c6 notifications: Add a setting for changing the notification sound.
Also, add a new notification sound, "ding". It comes from
https://freesound.org, where the original Zulip notification sound comes
from as well. In the future, new sounds can be added by adding audio
files to the `static/audio/notification_sounds` directory.

Tweaked significantly by tabbott:
* Avoided removing static/audio/zulip.ogg, because that file is
  checked for by old versions of the desktop app.
* Added a views check for the sound being valid + tests.
* Added additional tests.
* Restructured the test_events test to be cleaner.
* Removed check_bool_or_string.
* Increased max length of notification_sound.
* Provide available_notification_sounds in events data set if global
  notifications settings are requested.

Fixes #8051.
2018-12-09 21:25:30 -08:00

21 lines
494 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-03-12 03:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0193_realm_email_address_visibility'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='notification_sound',
field=models.CharField(default='zulip', max_length=20),
),
]