Commit 113cdeaf authored by fred's avatar fred

models: allow recording log lines without file id

parent 7182bf01
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-07-02 10:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nonstop', '0026_somalogline_track'),
]
operations = [
migrations.AlterField(
model_name='somalogline',
name='filepath',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='nonstop.NonstopFile'),
),
]
......@@ -157,7 +157,7 @@ class SomaLogLine(models.Model):
verbose_name_plural = _('Soma log lines')
ordering = ['play_timestamp']
filepath = models.ForeignKey(NonstopFile)
filepath = models.ForeignKey(NonstopFile, null=True)
track = models.ForeignKey(Track, null=True)
play_timestamp = models.DateTimeField()
on_air = models.NullBooleanField('On Air')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment