browser audio processing phase 1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 6.1.1 on 2026-10-02 14:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('fireworks_detect', '0008_sensor_owner_sensor_archived_at'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='BrowserProcessingSettings',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('browser_processing_beta_enabled', models.BooleanField(default=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Browser-side media processing (Beta)',
|
||||
'verbose_name_plural': 'Browser-side media processing (Beta)',
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def create_disabled_settings(apps, schema_editor):
|
||||
Settings = apps.get_model("fireworks_detect", "BrowserProcessingSettings")
|
||||
Settings.objects.get_or_create(pk=1, defaults={"browser_processing_beta_enabled": False})
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("fireworks_detect", "0009_browserprocessingsettings"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(create_disabled_settings, migrations.RunPython.noop),
|
||||
]
|
||||
Reference in New Issue
Block a user