container bugfixesd
This commit is contained in:
parent
3e0c8bdcac
commit
de0c59c7c2
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-13 08:17
|
||||
|
||||
import django.core.files.storage
|
||||
from django.db import migrations, models
|
||||
import sync.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sync', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='media',
|
||||
name='media_file',
|
||||
field=models.FileField(blank=True, help_text='Media file', max_length=200, null=True, storage=django.core.files.storage.FileSystemStorage(location='/downloads'), upload_to=sync.models.get_media_file_path, verbose_name='media file'),
|
||||
),
|
||||
]
|
|
@ -318,7 +318,7 @@ def download_media(media_id):
|
|||
verbose_name = _('Request media server rescan for "{}"')
|
||||
rescan_media_server(
|
||||
str(mediaserver.pk),
|
||||
queue=str(instance.source.pk),
|
||||
queue=str(media.source.pk),
|
||||
priority=20,
|
||||
verbose_name=verbose_name.format(mediaserver),
|
||||
remove_existing_tasks=True
|
||||
|
|
Loading…
Reference in New Issue