mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
transmission: Allow to submit download directory if it is creatable
transmission-deamon creates the directory if it doesn't exist. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
e7afa69155
commit
141ef33f7e
@ -15,7 +15,7 @@ class TransmissionForm(DirectorySelectForm):
|
|||||||
|
|
||||||
def __init__(self, *args, **kw):
|
def __init__(self, *args, **kw):
|
||||||
validator = DirectoryValidator(
|
validator = DirectoryValidator(
|
||||||
username=reserved_usernames[0], check_writable=True)
|
username=reserved_usernames[0], check_creatable=True)
|
||||||
super(TransmissionForm, self).__init__(
|
super(TransmissionForm, self).__init__(
|
||||||
title=_('Download directory'),
|
title=_('Download directory'),
|
||||||
default='/var/lib/transmission-daemon/downloads',
|
default='/var/lib/transmission-daemon/downloads',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user