Files
LXC-Dispatcharr-modificado-…/core/migrations/0002_preload_user_agents.py
T
root f56b088643
Base Image Build / prepare (push) Has been cancelled
Build and Push Multi-Arch Docker Image / build-and-push (push) Has been cancelled
Frontend Tests / test (push) Has been cancelled
Base Image Build / docker (amd64, ubuntu-24.04) (push) Has been cancelled
Base Image Build / docker (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Base Image Build / create-manifest (push) Has been cancelled
Proyecto LCX Dispatcharr multicuenta
2026-05-09 21:24:50 +02:00

37 lines
942 B
Python

# Generated by Django 5.1.6 on 2025-03-01 14:01
from django.db import migrations
def preload_user_agent(apps, schema_editor):
UserAgent = apps.get_model("core", "UserAgent")
UserAgent.objects.create(
user_agent_name="TiviMate",
user_agent="TiviMate/5.16 (Android 12)",
description="",
is_active=True,
)
UserAgent.objects.create(
user_agent_name="VLC",
user_agent="VLC/3.0.21 LibVLC/3.0.21",
description="",
is_active=True,
)
UserAgent.objects.create(
user_agent_name="Chrome",
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.3",
description="",
is_active=True,
)
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.RunPython(preload_user_agent),
]